/* Look "Sky" (owner #42, 24 Oct 2026): built on the chosen logo, a green globe speech bubble with its lines cut out, on
   sky blue (green #2F6B3A, sky #BFE3F5; owner-files/logo-ideas/LOGO-CHOSEN-green-sky-cutout.png). Sky-blue header band
   with the logo before the name, the logo tile on the home screen, white cards on a pale sky page, green buttons,
   headings and active tabs. Dark: deep green-navy page, sky accents, light-green actions. Plus Jakarta Sans throughout.
   The logo is drawn by CSS (an SVG redrawn from the PNG, used as a mask so it takes any colour): no app.js change.
   Also the CSS-level cut-off fixes the owner listed (#5 tab row / sticky bars, #35 Draw The Letter feedback, #36 select
   text, #47 empty box above Start Over), scoped to this look so the other looks are untouched.
   Every rule is scoped to :root[data-look="sky"]; looks.js loads this file only when the look is chosen. */
:root[data-look="sky"] {
  --bg: #eef7fc; --surface: #ffffff; --ink: #10261a; --muted: #4a5d55; --line: #cfe2ec;
  --accent: #2f6b3a; --accent-ink: #ffffff; --accent-soft: #e0f0e3;
  --stamp: #b3361f; --stamp-soft: #fbe3dc;
  --sky: #bfe3f5; --sky-ink: #1d4f6b; --band: #bfe3f5; --band-ink: #2f6b3a; --logo: #2f6b3a; --head: #2f6b3a;
  --t-trip: #bfe3f5; --trip-ink: #1d4f6b; --t-traveler: #d3ecd8;
  --desk: #d8ebf5; --frame: #10261a;
  --display: "Plus Jakarta Sans", "Avenir Next", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  /* the logo, redrawn from the PNG (1024 grid): tail, a gap ring, the globe, then the cut-out lines */
  --logo-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='150 125 720 870'%3E%3Cmask id='m'%3E%3Crect x='0' y='0' width='1024' height='1024' fill='black'/%3E%3Cpath d='M285 742L170 975L473 823Z' fill='white'/%3E%3Ccircle cx='512' cy='470' r='339' fill='none' stroke='black' stroke-width='28'/%3E%3Ccircle cx='512' cy='470' r='325' fill='white'/%3E%3Cg fill='none' stroke='black' stroke-width='28'%3E%3Cellipse cx='512' cy='470' rx='153' ry='332'/%3E%3Cpath d='M512 120V830M170 470H860'/%3E%3C/g%3E%3C/mask%3E%3Crect x='0' y='0' width='1024' height='1024' fill='black' mask='url(%23m)'/%3E%3C/svg%3E");
  --logo-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'%3E%3Cmask id='m'%3E%3Crect width='1024' height='1024' fill='black'/%3E%3Cpath d='M285 742L170 975L473 823Z' fill='white'/%3E%3Ccircle cx='512' cy='470' r='339' fill='none' stroke='black' stroke-width='28'/%3E%3Ccircle cx='512' cy='470' r='325' fill='white'/%3E%3Cg fill='none' stroke='black' stroke-width='28'%3E%3Cellipse cx='512' cy='470' rx='153' ry='332'/%3E%3Cpath d='M512 120V830M170 470H860'/%3E%3C/g%3E%3C/mask%3E%3Crect width='1024' height='1024' fill='%23BFE3F5'/%3E%3Crect width='1024' height='1024' fill='%232F6B3A' mask='url(%23m)'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) { :root[data-look="sky"]:not([data-theme="light"]) {
  --bg: #0d1a1e; --surface: #142529; --ink: #e7f3f7; --muted: #9db4bb; --line: #27404a;
  --accent: #8fd3a0; --accent-ink: #0a1f10; --accent-soft: #1a3324; --stamp: #ff8a6b; --stamp-soft: #3b1f16;
  --sky: #7cc4e6; --sky-ink: #bfe3f5; --band: #12303c; --band-ink: #bfe3f5; --logo: #8fd3a0; --head: #bfe3f5;
  --t-trip: #173a4a; --trip-ink: #bfe3f5; --t-traveler: #1a3324; --desk: #071013; --frame: #000; color-scheme: dark } }
:root[data-look="sky"][data-theme="dark"] {
  --bg: #0d1a1e; --surface: #142529; --ink: #e7f3f7; --muted: #9db4bb; --line: #27404a;
  --accent: #8fd3a0; --accent-ink: #0a1f10; --accent-soft: #1a3324; --stamp: #ff8a6b; --stamp-soft: #3b1f16;
  --sky: #7cc4e6; --sky-ink: #bfe3f5; --band: #12303c; --band-ink: #bfe3f5; --logo: #8fd3a0; --head: #bfe3f5;
  --t-trip: #173a4a; --trip-ink: #bfe3f5; --t-traveler: #1a3324; --desk: #071013; --frame: #000; color-scheme: dark }

/* the sky band: logo + name in green, white profile pill */
[data-look="sky"] .bar { background: var(--band); padding: 12px 18px 10px; min-height: 54px; margin-bottom: 6px; border-radius: 0 0 22px 22px; }
[data-look="sky"] .brand { display: inline-flex; align-items: center; gap: 8px; color: var(--band-ink); font: 800 1.08rem/1 var(--display); letter-spacing: -.01em; }
[data-look="sky"] .brand-logo { display: block; width: 26px; height: 31px; flex: none; color: var(--logo); }   /* inline SVG (app.js BRAND): sharp on the iPhone (#326) */
[data-look="sky"] .back { color: var(--band-ink); font-weight: 700; }
[data-look="sky"] .bar .profile-link { background: var(--surface); box-shadow: none; color: var(--ink); }
/* the name is centred now (#331): Your Profile is a round icon button on the right, its words stay in the aria-label */
[data-look="sky"] .bar .profile-link { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 50%; }
[data-look="sky"] .bar .profile-link > span { display: none; }
[data-look="sky"] .bar .profile-link:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
[data-look="sky"] .dots i.on { background: var(--band-ink); }

/* type: green headings, rounded friendly sans */
[data-look="sky"] h1, [data-look="sky"] h2 { color: var(--head); letter-spacing: -.02em; }
[data-look="sky"] h1 { font-weight: 800; }
[data-look="sky"] h2 { font-weight: 800; font-size: 1.5rem; }
[data-look="sky"] .eyebrow { color: var(--sky-ink); }
[data-look="sky"] .promise { justify-self: start; background: var(--sky); color: var(--sky-ink); padding: 6px 10px; border-radius: 999px; font: 700 .72rem/1.2 var(--body); letter-spacing: .06em; }
@media (prefers-color-scheme: dark) { :root[data-look="sky"]:not([data-theme="light"]) .promise { background: var(--t-trip); } }
:root[data-look="sky"][data-theme="dark"] .promise { background: var(--t-trip); }

/* home: the logo tile beside the headline */
[data-look="sky"] .home-head { grid-template-columns: 72px 1fr; column-gap: 14px; align-items: center; }
[data-look="sky"] .home-head::before { content: ""; grid-row: span 2; width: 72px; height: 72px; border-radius: 18px; background: var(--logo-tile) center / cover no-repeat; box-shadow: 0 6px 16px -8px rgba(29,79,107,.55); }
[data-look="sky"] .home-head h1 { font-size: 1.6rem; }

/* white cards with a soft sky edge */
[data-look="sky"] .choice, [data-look="sky"] .sec, [data-look="sky"] .opt { box-shadow: inset 0 0 0 1.5px var(--line), 0 2px 8px -4px rgba(29,79,107,.18); }
[data-look="sky"] .choice .ic { background: var(--sky) !important; color: var(--accent) !important; }
[data-look="sky"] .choice.learn .ic { background: var(--t-traveler) !important; }
@media (prefers-color-scheme: dark) { :root[data-look="sky"]:not([data-theme="light"]) .choice .ic { background: var(--t-trip) !important; color: var(--sky-ink) !important; } }
:root[data-look="sky"][data-theme="dark"] .choice .ic { background: var(--t-trip) !important; color: var(--sky-ink) !important; }
[data-look="sky"] .home-cards .choice.lead, [data-look="sky"] .choice.trip.lead { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line), 0 4px 14px -8px rgba(29,79,107,.3); }
[data-look="sky"] .home-cards .choice.trip.lead { background: linear-gradient(160deg, var(--surface) 40%, color-mix(in srgb, var(--t-trip) 70%, var(--surface))); }
[data-look="sky"] .home-cards .choice.learn.lead { background: linear-gradient(160deg, var(--surface) 40%, color-mix(in srgb, var(--t-traveler) 70%, var(--surface))); }
[data-look="sky"] .home-cards .choice b { color: var(--head); }
[data-look="sky"] details.sec > summary { color: var(--head); }
[data-look="sky"] .sec a, [data-look="sky"] .link { color: var(--accent); }

/* green buttons; ghost = green outline */
[data-look="sky"] .btn { border-radius: 999px; font-weight: 800; box-shadow: 0 4px 12px -6px color-mix(in srgb, var(--accent) 70%, transparent); }
[data-look="sky"] .btn.ghost { background: var(--surface); color: var(--accent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 55%, var(--line)); }
[data-look="sky"] .chip { box-shadow: inset 0 0 0 1.5px var(--line); }
[data-look="sky"] .chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
[data-look="sky"] .tag { background: var(--sky); color: var(--sky-ink); }

/* tabs: white strip, active = green pill */
[data-look="sky"] .tabs { border-radius: 999px; }
[data-look="sky"] .tabs button { border-radius: 999px; font-weight: 700; }
[data-look="sky"] .tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
[data-look="sky"] .seg { border-radius: 999px; }
[data-look="sky"] .seg::before { border-radius: 999px; }
[data-look="sky"] input[type="range"] { accent-color: var(--accent); }
[data-look="sky"] .foot { background: color-mix(in srgb, var(--sky) 22%, var(--bg)); border-top-color: var(--line); }

/* ---- cut-off fixes (owner 23 Oct #5 #35 #36 #47), this look only ---- */
/* #5 tab row: five tabs don't fit at 390 px, so the row scrolls; smaller padding keeps the first tab readable and a
   fade on the edges shows there's more (no tab looks cut in half any more) */
[data-look="sky"] .tabs { gap: 2px; scroll-padding-inline: 12px;
  -webkit-mask: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 10px), transparent 100%); mask: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 10px), transparent 100%); }
[data-look="sky"] .tabs { padding: 3px; grid-auto-columns: minmax(max-content, auto); }
[data-look="sky"] .tabs button { padding: 9px 7px; font-size: .8rem; letter-spacing: -.01em; }
/* #5 sticky footer covering the last lines: the scrolling page always ends with room above the footer */
[data-look="sky"] main { padding-bottom: 40px; scroll-padding-bottom: 40px; }
[data-look="sky"] main > :last-child { margin-bottom: 8px; }
/* #36 select text clipped top and bottom: one line height and a fixed minimum height, own chevron */
[data-look="sky"] .field select, [data-look="sky"] .field input { min-height: 48px; line-height: 1.3; padding-block: 12px; border-radius: 14px; }
[data-look="sky"] .field select { -webkit-appearance: none; appearance: none; padding-inline-end: 38px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23888' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center; }
[dir="rtl"] [data-look="sky"] .field select, [data-look="sky"][dir="rtl"] .field select { background-position: left 14px center; }
/* #35 Draw The Letter: the drawing box shrinks to the screen height so the feedback line and buttons stay visible */
/* (measured at 390×844: about 630 px of bars, title, letter and buttons around the box) */
[data-look="sky"] .wi-pad { width: clamp(180px, calc(100vh - 630px), 300px); width: clamp(180px, calc(100dvh - 630px), 300px); margin-inline: auto; }
/* #47 the "empty box" above Start Over = the closed "Why This Works" note peeking out under the drawing card: hidden
   while a letter is on screen (it still shows on the pack list) */
[data-look="sky"] .fc-main:has(.wi-card) ~ .why-note { display: none; }
/* two buttons side by side in the footer stay on one line ("Show Again Later") */
[data-look="sky"] .foot .row .btn { padding-inline: 10px; font-size: .95rem; white-space: nowrap; }
/* Book pages stay paper in dark mode (audit 28 Oct): headings in the logo green, never the dark mode's pale head colour */
[data-look="sky"] .book .page :is(h1, h2, h3), [data-look="sky"] .book .page .eyebrow, [data-look="sky"] .book .page .sd-title span { color: #2f6b3a; }
[data-look="sky"] .book .page .sd-count { color: #6f5f4c; }
/* "Early Draft…" warning tag (#232): readable warning colours in light + dark, wraps as a rounded box at 390 px */
[data-look="sky"] .tag.warn { background: var(--stamp-soft); color: var(--stamp); border-radius: 10px; font-weight: 600; }
