/* Ihop: components shared by every page. */

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--read { max-width: calc(var(--read) + 2 * var(--gutter)); }
.sec { padding-block: clamp(64px, 9vw, 128px); }
.sec--tight { padding-block: clamp(40px, 6vw, 72px); }
.ico { width: 24px; height: 24px; flex: none; }
.ico--sm { width: 18px; height: 18px; }

/* Type roles */
.e-mega { font-size: var(--t-mega); line-height: .98; letter-spacing: -0.025em; }
.e-h1 { font-size: var(--t-h1); line-height: 1.04; letter-spacing: -0.02em; }
.e-h2 { font-size: var(--t-h2); line-height: 1.08; }
.e-h3 { font-size: var(--t-h3); line-height: 1.25; }
.e-lead { font-size: var(--t-lead); line-height: 1.5; color: var(--ink2); max-width: 36em; }
.e-small { font-size: var(--t-small); color: var(--ink2); }
.e-label { font-size: var(--t-label); font-weight: 600; letter-spacing: .02em; color: var(--ink2); }
.e-num { font-family: var(--serif); font-variant-numeric: tabular-nums; }
.muted { color: var(--ink2); }

/* Logo lockup: the mark is the app icon until a new one is chosen */
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--ink); }
.logo img { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 0 0 1px var(--rule); }
.logo span { font-family: var(--serif); font-weight: 600; font-size: 24px; letter-spacing: -0.02em; line-height: 1; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--ground) 86%, transparent); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid transparent; transition: border-color var(--d-ui) ease; }
.nav.is-scrolled { border-bottom-color: var(--rule); }
.nav__in { display: flex; align-items: center; gap: var(--s-5); min-height: 68px; }
.nav__links { display: flex; gap: var(--s-1); margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-3); border-radius: var(--r-pill); color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav__links a:hover, .nav__links a[aria-current="page"] { background: var(--sheet); }
.nav__cta { margin-left: var(--s-2); }
.nav .nav__burger { display: none; margin-left: auto; }
.sheet-menu { display: none; }
@media (max-width: 860px) {
  .nav .nav__links, .nav .nav__cta { display: none; }
  .nav .nav__burger { display: inline-flex; }
  .sheet-menu { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--d-settle) var(--ease-settle); border-top: 1px solid transparent; }
  .sheet-menu > div { overflow: hidden; }
  .sheet-menu ul { list-style: none; margin: 0; padding: var(--s-2) var(--gutter) var(--s-4); }
  .sheet-menu li a { display: flex; align-items: center; min-height: 52px; font-family: var(--serif); font-size: 24px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
  .sheet-menu .btn { margin: var(--s-4) var(--gutter) var(--s-5); }
  .nav.is-open .sheet-menu { grid-template-rows: 1fr; border-top-color: var(--rule); }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: var(--r-pill); border: 1px solid transparent; background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; transition: transform var(--d-tick) var(--ease-tick), background-color var(--d-ui) ease, box-shadow var(--d-ui) ease; }
.btn:hover { text-decoration: none; box-shadow: var(--shadow-1); }
.btn:active { transform: scale(.97); }
.btn .ico { width: 20px; height: 20px; transition: transform var(--d-ui) var(--ease-settle); }
.btn:hover .ico--go { transform: translateX(3px); }
.btn--quiet { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn--quiet:hover { background: var(--sheet); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r-pill); border: 1px solid var(--rule); background: var(--sheet); color: var(--ink); cursor: pointer; }

/* Chips: the space switcher and tags */
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border-radius: var(--r-pill); border: 1px solid var(--rule); background: var(--sheet); color: var(--ink); font-weight: 500; font-size: 15px; cursor: pointer; white-space: nowrap; transition: background-color var(--d-ui) ease, color var(--d-ui) ease, border-color var(--d-ui) ease, transform var(--d-tick) var(--ease-tick); }
.chip .ico { width: 20px; height: 20px; }
.chip:hover { border-color: var(--ink2); }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; }
@media (prefers-color-scheme: dark) { .tag { color: #E8A9B1; } }

/* Sheets: paper on paper */
.card { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-3); padding: clamp(20px, 2.4vw, 32px); }
.card--lift { box-shadow: var(--shadow-1); }

/* Phone frame: real markup inside, scaled by width */
.phone { position: relative; width: min(310px, 100%); aspect-ratio: 9 / 18.6; border-radius: var(--r-phone); background: var(--ground); border: 10px solid #1a1411; box-shadow: var(--shadow-2), inset 0 0 0 1px rgba(255,255,255,.06); overflow: hidden; container-type: inline-size; }
.phone::before { content: ""; position: absolute; top: 9px; left: 50%; width: 30%; height: 22px; transform: translateX(-50%); background: #1a1411; border-radius: var(--r-pill); z-index: 3; }
@media (prefers-color-scheme: dark) { .phone { border-color: #0b0807; } .phone::before { background: #0b0807; } }
.screen { position: absolute; inset: 0; padding: 44px 16px 16px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.scr-chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 8px; border-radius: var(--r-pill); background: var(--sheet); border: 1px solid var(--rule); font-weight: 600; font-size: 13.5px; }
.scr-chip .ico { width: 18px; height: 18px; }
.scr-chip .ico--sm { width: 14px; height: 14px; color: var(--ink2); }
.scr-title { font-family: var(--serif); font-weight: 600; font-size: 27px; line-height: 1.1; letter-spacing: -0.01em; }
.scr-sub { color: var(--ink2); font-size: 13px; margin-top: 4px; }
.scr-card { background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; padding: 12px 14px; }
.scr-card h4 { margin: 0 0 6px; font-size: 12px; font-weight: 600; color: var(--ink2); letter-spacing: .02em; }
.scr-row { display: flex; align-items: center; gap: 10px; min-height: 30px; }
.scr-row + .scr-row { border-top: 1px solid var(--rule); }
.scr-row .amt { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 600; }
.scr-box { width: 18px; height: 18px; border-radius: 6px; border: 1.75px solid var(--ink2); flex: none; display: grid; place-items: center; }
.scr-box.is-on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.scr-box svg { width: 13px; height: 13px; }
.scr-row.is-done span:not(.scr-box) { color: var(--ink2); text-decoration: line-through; }
.scr-tabs { margin-top: auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; padding-top: 10px; border-top: 1px solid var(--rule); font-size: 10.5px; color: var(--ink2); text-align: center; }
.scr-tabs span { display: grid; justify-items: center; gap: 2px; }
.scr-tabs .ico { width: 20px; height: 20px; }
.scr-tabs .is-on { color: var(--accent); font-weight: 600; }

/* Accordion: the whole item animates (see site.js) */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); overflow: hidden; }
.faq summary { list-style: none; display: flex; align-items: center; gap: var(--s-4); min-height: 64px; padding-block: var(--s-4); cursor: pointer; font-family: var(--serif); font-weight: 600; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { margin-left: auto; color: var(--ink2); transition: transform var(--d-settle) var(--ease-settle); }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq .faq__a { padding: 0 0 var(--s-5); color: var(--ink2); max-width: 44em; }
.faq .faq__a p + p { margin-top: var(--s-3); }

/* Comparison table: stacks into cards on phones */
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 16px; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--rule); }
.cmp thead th { position: sticky; top: 68px; background: var(--ground); font-family: var(--serif); font-size: 20px; font-weight: 600; border-bottom: 2px solid var(--ink); z-index: 1; }
.cmp tbody th { font-weight: 600; width: 28%; }
.cmp td { color: var(--ink2); }
.cmp td.is-ihop { color: var(--ink); background: color-mix(in srgb, var(--sheet) 70%, transparent); }
.cmp thead th.is-ihop { color: var(--accent); }
.yes, .no, .part { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.yes { color: var(--ok); }
.no { color: var(--ink2); }
.yes .ico, .no .ico, .part .ico { width: 18px; height: 18px; }
@media (max-width: 720px) {
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: 100%; }
  .cmp thead { display: none; }
  .cmp tr { border: 1px solid var(--rule); border-radius: var(--r-2); background: var(--sheet); margin-bottom: var(--s-3); overflow: hidden; }
  .cmp tbody th { width: 100%; border-bottom: 1px solid var(--rule); padding: 12px 16px; font-family: var(--serif); font-size: 18px; }
  .cmp td { border-bottom: 0; padding: 10px 16px; display: grid; grid-template-columns: 92px 1fr; gap: 12px; }
  .cmp td::before { content: attr(data-label); font-weight: 600; color: var(--ink); font-size: 14px; }
  .cmp td.is-ihop { background: transparent; }
}

/* Prose: the legal and help pages */
.prose { max-width: var(--read); }
.prose h1 { font-size: var(--t-h1); line-height: 1.05; margin: 0 0 var(--s-3); }
.prose h2 { font-size: 26px; line-height: 1.2; margin: var(--s-7) 0 var(--s-3); }
.prose p, .prose li { color: var(--ink2); }
.prose p { margin: 0 0 var(--s-3); }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 var(--s-3); }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .lede { font-size: var(--t-lead); color: var(--ink); }
.prose .box { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-2); padding: 18px 20px; margin: var(--s-4) 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: var(--s-2) 0 var(--s-4); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 10px 10px 0; border-bottom: 1px solid var(--rule); color: var(--ink2); }
.prose th { color: var(--ink); font-weight: 600; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--ink2); margin-bottom: var(--s-5); }
.crumbs a { color: var(--ink2); }

/* Footer */
.foot { border-top: 1px solid var(--rule); padding-block: var(--s-8) var(--s-7); font-size: 15px; }
.foot__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--s-6); }
.foot h2 { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--ink2); margin-bottom: var(--s-3); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.foot li a { display: inline-flex; align-items: center; min-height: 36px; color: var(--ink); text-decoration: none; }
.foot li a:hover { text-decoration: underline; }
.foot__blurb { color: var(--ink2); margin-top: var(--s-3); max-width: 26em; }
.foot__legal { margin-top: var(--s-7); color: var(--ink2); font-size: 14px; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .foot li a { min-height: 44px; } }

/* Footer: paper at the top with the links, fading into a painted Swedish summer (Johan Krouthén, 1901, public domain).
   --p (0 to 1, set by site.js) is how far the footer has scrolled into view: the paper recedes and the painting rises. */
.foot { --p: 1; position: relative; isolation: isolate; overflow: hidden; border-top: 0; padding: 0; min-height: clamp(640px, 60vw, 900px); display: flex; flex-direction: column; background: var(--ground); }
.foot__art { position: absolute; inset: 0; z-index: -1; }
.foot__art :is(img, video) { position: absolute; inset: -6% 0 0 0; width: 100%; height: 106%; object-fit: cover; object-position: 50% 42%; max-width: none;
  transform: translateY(calc((1 - var(--p)) * 7%)) scale(calc(1.06 - var(--p) * .04)); will-change: transform; }
.foot__art::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--ground) 0%, var(--ground) calc(30% - var(--p) * 8%), color-mix(in srgb, var(--ground) 0%, transparent) calc(62% - var(--p) * 10%), transparent 78%, rgba(25, 18, 14, .45) 100%); }
.foot .wrap { position: relative; }
.foot__top { padding-top: clamp(56px, 7vw, 96px); }
.foot__bottom { margin-top: auto; padding-bottom: 22px; }
.foot__bottom .foot__legal { color: #FBF7F1; text-shadow: 0 1px 8px rgba(0,0,0,.45); border-top: 1px solid rgba(251,247,241,.35); padding-top: 14px; margin-top: 0; }
.foot__bottom .foot__legal a { color: #FBF7F1; }
.foot__credit { font-size: 12px; opacity: .85; }
@media (prefers-reduced-motion: reduce) { .foot { --p: 1 !important; } }
@media (max-width: 860px) { .foot { min-height: 900px; } .foot__art :is(img, video) { object-position: 30% 70%; } }
@media (max-width: 860px) {
  .foot { min-height: 0; }
  .foot__top { order: 1; padding-bottom: var(--s-4); }
  .foot__art { order: 2; position: relative; inset: auto; height: clamp(360px, 95vw, 520px); margin-top: -40px; z-index: 0; }
  .foot__art :is(img, video) { inset: 0; height: 100%; }
  .foot__art::after { background: linear-gradient(180deg, var(--ground) 0%, color-mix(in srgb, var(--ground) 0%, transparent) calc(42% - var(--p) * 14%), transparent 70%, rgba(25, 18, 14, .5) 100%); }
  .foot__bottom { order: 3; position: relative; z-index: 1; margin-top: -86px; }
}
@media (max-width: 860px) {
  .foot__top { position: relative; z-index: 2; }
  .foot__art { margin-top: 0; overflow: hidden; }
  .foot__art :is(img, video) { transform: translateY(calc((1 - var(--p)) * 4%)) scale(1.04); transform-origin: 50% 100%; }
  .foot__art::after { background: linear-gradient(180deg, var(--ground) 0%, var(--ground) 8%, color-mix(in srgb, var(--ground) 55%, transparent) 22%, transparent 46%, transparent 70%, rgba(25, 18, 14, .5) 100%); }
}

/* Ihop's own world in the footer (assets/ihop-world.svg, injected by site.js). Layers move by depth on scroll. */
.foot__art svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.foot__art [data-depth] { transform: translateY(calc((1 - var(--p)) * var(--d, 0) * 70px)); }
@media (prefers-color-scheme: dark) { .foot__art svg { filter: brightness(.86) saturate(.95); } }
@media (max-width: 860px) { .foot__art svg { inset: 0; } }
@media (max-width: 860px) { .foot__art svg { transform: scale(1.75); transform-origin: 46% 96%; } }
@media (max-width: 480px) { .foot__art svg { transform: scale(1.8); transform-origin: 28% 96%; } }

/* Footer painting (generated for Ihop in Google Flow): keep the whole scene, sky at the top behind the links */
.foot__art :is(img, video) { object-position: 50% 100%; }
@media (prefers-color-scheme: dark) { .foot__art :is(img, video) { filter: brightness(.82) saturate(.92); } }
@media (max-width: 860px) { .foot__art :is(img, video) { object-position: 30% 100%; transform: none; } }
/* The optional loop sits on the still and fades in once it is actually playing */
.foot__art video { opacity: 0; transition: opacity .8s ease; }
.foot__art video.is-on { opacity: 1; }

/* Cookie choice: a small card in the corner. Both answers look the same, so saying no is as easy as yes. */
.consent { position: fixed; z-index: 60; left: var(--gutter); bottom: var(--gutter); max-width: 420px; padding: 18px 20px; border-radius: var(--r-3);
  background: var(--sheet); color: var(--ink); box-shadow: var(--shadow-2); border: 1px solid var(--rule); font-size: 15px; line-height: 1.5;
  opacity: 0; transform: translateY(12px); transition: opacity .3s ease, transform .3s var(--ease-settle, ease); }
.consent.is-on { opacity: 1; transform: none; }
.consent p { margin: 0 0 14px; }
.consent b { display: block; font-family: var(--serif); font-size: 18px; margin-bottom: 4px; }
.consent__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.consent__btns .btn { width: 100%; }
@media (max-width: 560px) { .consent { left: 12px; right: 12px; bottom: 12px; max-width: none; } }
@media (prefers-reduced-motion: reduce) { .consent { transition: none; } }
.foot__cookies { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Footer with the "För" column: eight short links in two columns, so it stays as low as the others */
.foot__grid { grid-template-columns: 1.3fr 1fr 1.7fr 1fr 1fr; }
.foot__grid .foot__two { display: block; columns: 2; column-gap: var(--s-5); }
.foot__grid .foot__two li + li { margin-top: 0; }
.foot__grid .foot__two li { padding-block: 4px; }
.foot__two li { break-inside: avoid; }
@media (max-width: 1080px) and (min-width: 861px) { .foot__grid { grid-template-columns: 1fr 1fr 1fr; } .foot__brand { grid-column: 1 / -1; } }
@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__wide { grid-column: 1 / -1; } }

/* ===== The menus in the nav =====
   Each menu is a button that opens a panel under the nav (hover on desktop after a short pause, click everywhere,
   Esc closes and returns focus). Every panel is laid out for what it holds: the kinds with their painting,
   the guides by topic, the apps people compare with, and the help center with a search. */
.nav__in { position: relative; }
.dd__btn { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 10px 0 var(--s-3); border: 0; border-radius: var(--r-pill);
  background: none; color: var(--ink); font: 500 15px var(--sans); cursor: pointer; }
.dd__btn:hover, .dd__btn[aria-expanded="true"], .dd__btn[data-current] { background: var(--sheet); }
.dd__chev { width: 16px; height: 16px; opacity: .6; transition: transform .25s var(--ease-settle, ease); }
.dd__btn[aria-expanded="true"] .dd__chev { transform: rotate(180deg); }

.dd__panel { position: absolute; z-index: 40; top: calc(100% - 4px); left: 50%; width: min(980px, calc(100vw - 2 * var(--gutter)));
  padding: 24px 26px 18px; border: 1px solid var(--rule); border-radius: 22px; background: var(--sheet); color: var(--ink);
  box-shadow: 0 30px 60px -30px rgba(42,33,28,.42), 0 2px 8px rgba(42,33,28,.06);
  opacity: 0; visibility: hidden; transform: translate(-50%, -8px); transition: opacity .18s ease, transform .3s cubic-bezier(.2,.8,.2,1), visibility 0s .3s; }
.dd__btn[aria-expanded="true"] + .dd__panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.dd__panel a { color: var(--ink); text-decoration: none; }
.dd__panel a:focus-visible, .dd__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 10px; }
.dd__foot { grid-column: 1 / -1; display: flex; gap: 24px; margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 15px; font-weight: 600; }
.dd__foot a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.dd__foot a:hover { text-decoration-thickness: 2px; }

/* För vem: two columns of kinds, and the painting of the one you point at */
.dd--for { display: grid; grid-template-columns: minmax(0, 1fr) 232px; gap: 6px 24px; }
.dd__kinds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; }
.dd__kinds a { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 10px 12px; border-radius: 14px; transition: background-color .15s; }
.dd__kinds a:hover, .dd__kinds a:focus-visible { background: var(--ground); }
.dd__kinds .ico { width: 22px; height: 22px; margin-top: 2px; color: var(--accent); }
.dd__kinds b, .dd__apps b { display: block; font-size: 15.5px; font-weight: 600; }
.dd__kinds small, .dd__apps small { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.4; color: var(--ink2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dd__pic { margin: 0; align-self: start; }
.dd__pic img { display: block; width: 232px; height: 232px; object-fit: cover; border-radius: 18px; transition: opacity .25s ease; }
.dd__pic img.is-swap { opacity: .25; }

/* Guider and Hjälp: topics as short columns */
.dd__groups { columns: 4 190px; column-gap: 28px; }
.dd__group { break-inside: avoid; margin-bottom: 16px; }
.dd__group h3 { margin: 0 0 4px; font: 600 17px/1.2 var(--serif); letter-spacing: 0; }
.dd__group ul { list-style: none; margin: 0; padding: 0; }
.dd__group a { display: block; padding: 4px 0; font-size: 14.5px; line-height: 1.35; }
.dd__group a:hover { color: var(--accent); }

/* Jämför: the apps, with their own icons */
.dd__apps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 12px; }
.dd__apps a { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; padding: 9px 12px; border-radius: 14px; }
.dd__apps a:hover, .dd__apps a:focus-visible { background: var(--ground); }
.dd__logos { display: flex; }
.dd__logos img { width: 28px; height: 28px; border-radius: 8px; box-shadow: 0 0 0 2px var(--sheet); }
.dd__logos img + img { margin-left: -12px; margin-top: 10px; }

/* Hjälp: a search first */
.dd__search { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 14px; background: var(--ground); }
.dd__search .ico { width: 18px; height: 18px; color: var(--ink2); }
.dd__search input { flex: 1; min-height: 46px; border: 0; background: none; font: 400 16px var(--sans); color: var(--ink); outline: none; }
.dd__search:focus-within { border-color: var(--accent); }

/* Phone: the same groups fold out inside the menu sheet, which scrolls when it is long */
@media (max-width: 860px) {
  .sheet-menu > div { max-height: calc(100svh - 68px); overflow-y: auto; overscroll-behavior: contain; }
  .sheet-menu details { border-bottom: 1px solid var(--rule); }
  .sheet-menu summary { display: flex; align-items: center; justify-content: space-between; min-height: 56px; font-family: var(--serif); font-size: 24px; color: var(--ink); cursor: pointer; list-style: none; }
  .sheet-menu summary::-webkit-details-marker { display: none; }
  .sheet-menu summary .ico { width: 20px; height: 20px; opacity: .6; transition: transform .25s; }
  .sheet-menu details[open] summary .ico { transform: rotate(180deg); }
  .sheet-menu details ul { padding: 0 0 12px; }
  .sheet-menu details li a { min-height: 44px; font-family: var(--sans); font-size: 17px; border-bottom: 0; color: var(--ink2); }
  .sheet-menu details li a b { font-weight: 500; color: var(--ink); }
}
@media (prefers-reduced-motion: reduce) { .dd__panel, .dd__chev, .dd__pic img { transition: none; } }
