/* fixes-v2.css: design fixes from Rupert's and Freddie's notes (29 Nov 2026), on top of each page's own styles.
   Linked from every page. Replaces fixes-v1.css.
   1. One logo at the top: the black group bar is now a light product switcher with no logo.
   2. Partial phone screenshots fade out softly at the cut instead of a dashed edge or blank screen.
   3. Real photographs: the library bar on About, the panelled lounge on Setup.
   4. Club Room home: "For your members and your office" as a picture, a heading and a grid of short tiles.
   5. Questions open and close (home page and /club-room/questions).
   6. On phones, the laptop on the Club Room home page sits inside the screen. */

/* 1. one logo at the top: the group bar becomes a light switcher between the four Societal Studios products,
      in the site's ivory, ink and navy, with no second logo. The product you're on is the navy pill. */
.groupbar { background: var(--off, #f1eee8); color: var(--muted, #55524c); border-bottom: 1px solid var(--line, #dcd7cd); font-size: 12.5px; letter-spacing: .02em; }
.groupbar .home { display: none !important; }
.groupbar .in { height: 40px; justify-content: flex-start; gap: 18px; }
.groupbar .in::before { content: "Societal Studios"; flex: none; font-family: "Lato", Arial, sans-serif; font-style: normal; font-weight: 900; font-size: 14px; letter-spacing: 0; color: var(--ink, #141414); padding-right: 18px; border-right: 1px solid var(--line, #dcd7cd); line-height: 18px; }
body:has(header.top a.logo[aria-label*="Societal Studios"]) .groupbar .in::before { display: none; }
.groupbar nav { gap: 2px; }
.groupbar nav a { color: var(--muted, #55524c); padding: 5px 12px 5px 10px; line-height: 16px; border: 0 !important; border-radius: 999px; gap: 7px;
  transition: background-color .2s ease, color .2s ease, transform .16s cubic-bezier(.23, 1, .32, 1); }
.groupbar nav a:active { transform: scale(.97); }
.groupbar nav a[aria-current="page"] { background: var(--navy, #1f2a44); color: #faf8f4; }
@media (hover: hover) { .groupbar nav a:not([aria-current="page"]):hover { color: var(--ink, #141414); background: rgba(31, 42, 68, .07); } }
.groupbar nav a:focus-visible { outline: 2px solid var(--navy, #1f2a44); outline-offset: 2px; }
.groupbar nav a[href*="societalsocks"]::after { content: "\2197"; font-size: 11px; opacity: .6; margin-left: -2px; }
@media (max-width: 700px) {
  .groupbar .in { height: 38px; padding: 0 10px; }
  .groupbar .in::before { display: none; }
  .groupbar nav { width: 100%; justify-content: space-between; gap: 0; overflow-x: auto; scrollbar-width: none; }
  .groupbar nav::-webkit-scrollbar { display: none; }
  .groupbar { font-size: 12px; letter-spacing: 0; }
  .groupbar nav a { padding: 5px 8px; white-space: nowrap; }
  .groupbar nav a[href*="societalsocks"]::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { .groupbar nav a { transition: none; } }

/* 2. phones: whole screenshots fill the same screen shape, from the top; partial ones fade out where they were cut */
.ph:not(.fade) .s img, .tph .s img { aspect-ratio: 780 / 1688; height: auto; object-fit: cover; object-position: top; }
.pp .ph.fade { border-bottom: 0; border-radius: 30px 30px 0 0; padding-bottom: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 68%, transparent 100%); mask-image: linear-gradient(to bottom, #000 68%, transparent 100%); }
.pp .ph.fade .s { border-bottom: 0; border-radius: 26px 26px 0 0; }
.pp .ph.fade.mid { border-top: 0; border-radius: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 70%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 70%, transparent 100%); }
.pp .ph.fade.mid .s { border-top: 0; border-radius: 0; padding-top: 0; }
.pp .ph.fade.mid .s:before { display: none; }
.pp .ph.fade .b1, .pp .ph.fade .b2, .pp .ph.fade .b3 { display: none; }

/* 3a. About: the values, over the club library bar */
#care.sec.off { position: relative; isolation: isolate; background: #141414 url("/assets/photos/club-library-bar.jpg") center 40% / cover no-repeat; color: #fff; }
#care.sec.off::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14, 14, 14, .88) 0%, rgba(14, 14, 14, .7) 45%, rgba(14, 14, 14, .35) 100%); }
#care .care { padding-top: 40px; padding-bottom: 40px; }
#care .care .words span { color: #fff; }
#care .care .words span + span { color: #e2c78f; }
#care .care .words span + span + span { color: #d6d0c4; }
#care .care p.why { color: rgba(255, 255, 255, .86); }
/* 3b. Setup: "Have a project in mind?" over the panelled club lounge */
body:has(header.top a[aria-label^="Societal Setup"]) .cta { position: relative; isolation: isolate; background: #141414 url("/assets/photos/club-panelled-lounge.jpg") center 55% / cover no-repeat; }
body:has(header.top a[aria-label^="Societal Setup"]) .cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20, 26, 48, .9) 0%, rgba(20, 26, 48, .72) 50%, rgba(20, 26, 48, .45) 100%); }
body:has(header.top a[aria-label^="Societal Setup"]) .cta h2 span { color: #e2c78f; }

/* 4. Club Room home: the picture beside the heading, then the nine parts as short tiles */
.tour.tour2 { display: block; }
.tour2 .t2-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 88px; align-items: center; }
.tour2 .t2-intro h2 { margin-bottom: 22px; }
.tour2 .t2-intro p { font-size: 19px; line-height: 1.6; color: #2a2926; max-width: 26em; }
.tour2 .t2-intro .all { margin-top: 26px; }
.tour2 .t2-grid { list-style: none; margin: 72px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; border-top: 1px solid var(--line); }
.tour2 .t2-grid li { border-bottom: 1px solid var(--line); }
.tour2 .t2-grid a { position: relative; display: grid; align-content: start; gap: 6px; padding: 24px 40px 24px 0; color: var(--ink); text-decoration: none; height: 100%; }
.tour2 .t2-grid b { font-size: 19px; font-weight: 600; letter-spacing: -.005em; }
.tour2 .t2-grid span { font-size: 16px; line-height: 1.5; color: var(--muted); }
.tour2 .t2-ar { position: absolute; right: 4px; top: 27px; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .45;
  transition: transform .25s cubic-bezier(.23, 1, .32, 1), opacity .2s; }
@media (hover: hover) { .tour2 .t2-grid a:hover b { text-decoration: underline; text-underline-offset: 4px; } .tour2 .t2-grid a:hover .t2-ar { opacity: 1; transform: translateX(4px); } }
@media (max-width: 900px) {
  .tour2 .t2-top { grid-template-columns: 1fr; row-gap: 48px; }
  .tour2 .t2-grid { grid-template-columns: 1fr; margin-top: 48px; }
  .tour2 .t2-grid a { padding: 16px 36px 16px 0; gap: 2px; }
  .tour2 .t2-grid b { font-size: 18px; }
  .tour2 .t2-grid span { font-size: 15px; }
  .tour2 .t2-ar { top: 19px; }
}
@media (min-width: 901px) and (max-width: 1150px) { .tour2 .t2-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 5. questions that open and close */
details.qa { padding: 0; border-top: 1px solid var(--line); }
details.qa:last-of-type { border-bottom: 1px solid var(--line); }
details.qa + .more-q { border-top: 0 !important; }
details.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary h3 { margin: 0 !important; transition: color .2s; }
@media (hover: hover) { details.qa summary:hover h3 { color: var(--navy); } }
details.qa summary:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; border-radius: 4px; }
.qa-i { position: relative; flex: none; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; transition: background-color .2s, border-color .2s, transform .3s cubic-bezier(.23, 1, .32, 1); }
.qa-i::before, .qa-i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: var(--ink); transition: transform .3s cubic-bezier(.23, 1, .32, 1); }
.qa-i::after { transform: rotate(90deg); }
details.qa[open] .qa-i { background: var(--navy); border-color: var(--navy); }
details.qa[open] .qa-i::before, details.qa[open] .qa-i::after { background: #fff; }
details.qa[open] .qa-i::after { transform: rotate(0deg); }
details.qa .qa-a { padding: 0 64px 26px 0; }
details.qa[open] .qa-a { animation: qa-in .35s cubic-bezier(.23, 1, .32, 1); }
@keyframes qa-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 700px) { details.qa summary { padding: 20px 0; } details.qa .qa-a { padding-right: 0; } }

/* 6. Club Room home, on a phone: the laptop stays on the screen */
@media (max-width: 900px) { .cr-site .tour .lap { margin-left: 24%; width: 76%; } }

@media (prefers-reduced-motion: reduce) { details.qa[open] .qa-a { animation: none; } .qa-i, .qa-i::before, .qa-i::after, .tour2 .t2-ar { transition: none; } }

/* 7. the header stays at the top while you read. Once the page moves it turns frosted ivory with a soft shadow,
      and a thin navy line along its foot shows how far down the page you are (assets/header-v1.js adds .is-stuck
      and the line). The product switcher above it scrolls away as normal. */
html { scroll-padding-top: 96px; }
body > header { position: sticky; top: 0; z-index: 60;
  transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease; }
body > header.is-stuck { background-color: rgba(250, 248, 244, .86); border-bottom-color: transparent;
  box-shadow: 0 1px 0 rgba(20, 20, 20, .06), 0 8px 24px -12px rgba(20, 20, 20, .18); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  body > header.is-stuck { -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
}
body > header .read-line { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none;
  background: var(--navy, #1f2a44); transform-origin: 0 50%; transform: scaleX(0); opacity: 0; transition: opacity .3s ease; }
body > header.is-stuck .read-line { opacity: 1; }
@media (max-width: 700px) { html { scroll-padding-top: 76px; } }
/* an open phone menu scrolls inside itself, so it never runs off a short screen */
body > header.menu-open { max-height: 100vh; max-height: 100dvh; overflow-y: auto; overscroll-behavior: contain; }
@media (prefers-reduced-motion: reduce) { body > header { transition: none; } }

/* 8. Club Room home: the phone in the hero is shown whole (it used to hang off the bottom of the photo and was
      cut in half), sized to sit inside the photo with room to spare, with a soft shadow so it lifts off the room. */
@media (min-width: 901px) {
  .cr-site .hero .hph, .hero .hph { top: 50%; bottom: auto; right: max(6%, calc(var(--edge, 96px) - 10px)); width: clamp(236px, 20vw, 290px);
    transform: translateY(-50%); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .65); }
  .hero .hph .s img { aspect-ratio: 600 / 1298; height: auto; object-fit: cover; object-position: top; }
}
@media (min-width: 901px) and (max-height: 860px) { .cr-site .hero .hph, .hero .hph { width: clamp(220px, 18vw, 262px); } }
@media (min-width: 901px) and (max-width: 1100px) { .cr-site .hero .hph, .hero .hph { display: none; } }

/* 9. phone screens: the strip around the island takes the colour of the top of the app screen, as on a real
      iPhone, instead of a white band (assets/site-v2.js reads the colour from each screenshot). */
.ph .s, .tph .s, .hph .s { transition: background-color .2s ease; }

/* 10. Club Room home on a phone: the laptop-and-phone picture sits wholly on the screen (the phone's top was
       cut off by the hero, and the laptop ran off the right edge). */
@media (max-width: 900px) {
  .cr-site .tour .stage { margin-right: 0; padding: 0 0 40px 0; }
  .cr-site .tour .tph { bottom: 40px; }
  .cr-site .tour .stage { min-height: calc(min((100vw - 96px) * .89, 378px) + 52px); display: flex; align-items: flex-end; }
  .cr-site .tour .lap { flex: none; }
  .cr-site .tour .lap { margin-left: 26%; width: 74%; }
  .cr-site .tour .tph { width: 40%; max-width: 170px; }
  .cr-site .tour2 .t2-top { padding-top: 8px; }
}

/* 11. product page heroes: the phone (or tablet, or laptop) no longer sits on the line at the foot of the hero;
       it floats with even space below it, centred against the text. */
.pp-hero { padding-bottom: 88px; }
.pp-hero .stage { align-items: center; }
.pp-hero .stage .tab, .pp-hero .stage .win { margin-bottom: 0; }
.pp-hero .copy { padding-bottom: 0; }
@media (max-width: 900px) {
  .pp-hero { padding-bottom: 56px; }
  .pp-hero .copy { padding-bottom: 40px; }
}

/* 12. Club Room home: the hero (and the closing band) show a panelled club billiard room (Unsplash, the leopard-skin
       rug removed at Toby's request), framed on the table and the red lamps. */
.cr-site .hero > img, .cr-site img[src*="club-snooker-room-hero"] { object-position: center 55%; }
@media (max-width: 760px) { .cr-site .hero > img { object-position: 42% 55%; } }
