/* Starkmans footer refinements (2026-11-24): loads after starkmans-visit-footer-20261124-v2.css.
   Matches the site (navy #30318b text, red #b12940 hover, 48 px buttons, 12 px tile corners) and adds breathing room.
   The homepage resets heading margins to 0, so spacing here uses !important on margins only. */
html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit {
    --visit-ink: #30318b;
    --visit-link: #30318b;
    --visit-border: #e1e1eb;
    padding: 40px clamp(16px, 2.5vw, 40px) 48px;
    line-height: 1.5;
}
html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-shell { border-color: var(--visit-border); border-radius: 12px; }
html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-card {
    gap: clamp(24px, 3vw, 48px);
    padding: clamp(24px, 3vw, 40px);
    border-radius: 11px 11px 0 0;
}

/* Visit block */
html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-title { margin: 0 0 14px !important; line-height: 1.15; }
html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit address { margin: 0 0 4px !important; line-height: 1.45; }
html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-access { margin: 0 0 22px !important; }
html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-actions { gap: 12px; }
html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit a.ss-visit-action {
    min-height: 48px; padding: 11px 22px; gap: 8px; border-radius: 8px;
    font-size: 17px; font-weight: 700; line-height: 1.25;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
/* Main button: navy, red on hover (same as the rest of the site) */
html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit a.ss-visit-directions { background: #30318b; border-color: #30318b; color: #fff !important; }
html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit a.ss-visit-directions:is(:hover, :focus-visible) { background: #b12940; border-color: #b12940; }
/* Second button: white outline, blue-grey border and red text on hover */
html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit a.ss-visit-action:not(.ss-visit-directions) { background: #fff; border-color: #d8d6e4; color: #30318b; }
html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit a.ss-visit-action:not(.ss-visit-directions):is(:hover, :focus-visible) { border-color: #aaaac6; color: #b12940 !important; }
html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-email { margin-top: 20px; }

/* Store hours */
html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-hours { padding-inline-start: clamp(24px, 3vw, 48px); }
html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-hours h2,
html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-hours :is(h3, .ss-store-hours-title) { margin: 0 0 14px !important; }
html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-hours .ss-store-hours dl > div { gap: 12px; margin: 0 0 10px !important; }
html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-hours .ss-holiday-hours-line { margin: 14px 0 0 !important; }

/* Virtual tour */
html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-tour { gap: 12px; }
html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-tour img { border-radius: 10px; }

/* Link columns */
html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-links { gap: 40px; padding: 32px clamp(24px, 3vw, 40px) 28px; }
html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-links > section + section { padding-inline-start: 40px; }
html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-links h2 { margin: 0 0 16px !important; line-height: 1.25; }
html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-links ul { column-gap: 28px; }
html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-links li { margin: 0 0 10px !important; line-height: 1.35; }
@media (min-width: 721px) {
    html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-links > section:first-child ul { column-gap: 28px; }
}

/* Bottom row */
html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-utility {
    gap: 12px 24px; padding: 20px 0 24px; margin-inline: clamp(24px, 3vw, 40px); font-size: .9375rem;
}
html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-utility nav { gap: 8px 24px; }

/* Links: same hover as the rest of the site (red, no underline) */
html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit a:not(.ss-visit-action) { transition: color .15s ease; }
html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit a:not(.ss-visit-action):is(:hover, :focus-visible),
html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit a:not(.ss-visit-action):is(:hover, :focus-visible) * { color: #b12940 !important; text-decoration: none !important; }

/* Tablet */
@media (min-width: 721px) and (max-width: 980px) {
    html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-tour { grid-template-columns: 132px auto; gap: 16px; }
}

/* Phone */
@media (max-width: 720px) {
    html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit { padding: 28px 16px 32px; }
    html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-card { gap: 24px; padding: 24px 20px; }
    html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-title { margin-bottom: 12px !important; }
    html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-access { margin-bottom: 20px !important; }
    html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
    html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit a.ss-visit-action { width: 100%; }
    html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-email { margin-top: 18px; }
    html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-hours { padding: 24px 0 0; }
    html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-tour { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; }
    html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-links { gap: 0; padding: 8px 20px; }
    html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-links > section + section { padding-inline-start: 0; }
    html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-links summary { min-height: 52px; }
    html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-links li { margin: 0 !important; }
    html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-links ul { padding-bottom: 14px; }
    html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-utility { margin-inline: 20px; padding: 20px 0 24px; gap: 16px; }
    html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-utility nav { gap: 10px 16px; }
}

/* Tablet: stack the two link groups so each gets the full width (they wrapped badly side by side) */
@media (min-width: 721px) and (max-width: 980px) {
    html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-links { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-links > section + section { padding: 28px 0 0; border-inline-start: 0; border-top: 1px solid var(--visit-border); }
    html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-links > section:first-child ul { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, auto); column-gap: 28px; }
    html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-links > section + section ul { column-count: 3; }
}

/* Colours from the rest of the site: footer background = header background (#f4f3f5),
   visit box = the light section colour used for Shop everyday care / Funding (#f7f7fb). */
html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit { --visit-surface: #f7f7fb; background: #f4f3f5; }
html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-card { background: #f7f7fb; border-bottom: 1px solid var(--visit-border); }

/* Width: same 40 px page margins as the homepage sections, so the edges line up (no 1320 px cap) */
@media (min-width: 721px) {
    html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit { padding-inline: 40px; }
    html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-shell { width: 100%; max-width: none; }
}
/* Keep store hours readable on wide screens (days and times stay close together) */
html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-hours .ss-store-hours { max-width: 380px; }
html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-tour { max-width: 560px; }

/* Three link groups: Shop, Our services, Advice & Community (Shop restored 2026-11-24) */
@media (min-width: 981px) {
    html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-links { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr); }
}
@media (min-width: 721px) {
    /* the older first-child rule was written for "Our services"; every group now uses the same two-column list */
    html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-links > section ul { display: block; column-count: 2; column-gap: 28px; }
}
@media (min-width: 721px) and (max-width: 980px) {
    html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-links > section ul { column-count: 3; }
}
/* Laptop/desktop: one clean column per group (two narrow columns wrapped); also on very wide screens (two columns still wrapped at 1920 px) */
@media (min-width: 981px) {
    html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-links > section ul { column-count: 1; }
    html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Phone: every footer link is at least 44 px tall so it is easy to tap (2026-11-24) */
@media (max-width: 720px) {
    html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-links a,
    html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-utility a {
        display: flex; align-items: center; min-height: 44px; padding-block: 8px; line-height: 1.3;
    }
    html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-utility nav { row-gap: 0; }
}

/* Tablet fixes (2026-11-24) */
/* 1. Store hours: day names and times stay on one line */
html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-hours .ss-store-hours dl > div { grid-template-columns: minmax(max-content, 1fr) max-content !important; gap: 16px; }
html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-hours .ss-store-hours :is(dt, dd) { white-space: nowrap; }
/* 2. Landscape tablets and small laptops: two-column visit box with the virtual tour on its own row (three columns were cramped) */
@media (min-width: 981px) and (max-width: 1199px) {
    html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-card { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
    html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-tour { grid-column: 1 / -1; grid-template-columns: 132px auto; gap: 16px; align-items: center; justify-content: start; max-width: none; }
}
/* 3. Touch screens and narrower windows: footer links at least 44 px tall so they are easy to tap */
@media (max-width: 1199px), (pointer: coarse) {
    html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-links a,
    html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-utility a {
        display: flex; align-items: center; min-height: 44px; padding-block: 8px; line-height: 1.3;
    }
    html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-links li { margin: 0 !important; }
    html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-utility nav { row-gap: 0; }
}
/* Tablets: the hours column takes the width its one-line rows need; the address column gets the rest */
@media (min-width: 721px) and (max-width: 1199px) {
    html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-card { grid-template-columns: minmax(0, 1fr) max-content; }
}
/* Desktop: the hours column is exactly as wide as its one-line rows (times stuck out 4 px at 1280 px) */
@media (min-width: 1200px) {
    html:not(#ss-vf-a):not(#ss-vf-b) footer#plan-your-visit .ss-visit-card { grid-template-columns: minmax(0, 1.42fr) max-content minmax(0, .99fr); }
}
