/* Recap · Search + Settings pages · Desktop / wide screens (≥ 1024px)
   Loaded only on wide viewports (media attribute in the HTML) → the phone layout is untouched.
   Search : centred search bar + wrapped subject tabs, results laid out in a grid instead of one long column.
   Settings : header on top, setting groups flowing in two balanced columns. */

@media (min-width: 1024px) {

  /* ================= SEARCH ================= */
  #engine { padding-inline: clamp(40px, 5vw, 96px); padding-top: 88px; }
  #engine .subject-body { max-width: 1180px; margin-inline: auto; }
  #engine .hdr-note-wrap { max-width: 640px; margin-inline: auto; }
  #engine .hdr-note .sub { font-size: 1.2rem; }

  #engine .sx-dock { margin-inline: 0; padding-inline: 0; }
  #engine .sx { max-width: 780px; margin: 8px auto 4px; padding: 12px 14px 12px 16px; }
  #engine .sx input { font-size: 1.25rem; }
  #engine .sx-tabs { flex-wrap: wrap; justify-content: center; overflow: visible; margin: 0 auto; padding: 34px 0 10px; max-width: 1180px; row-gap: 16px; }
  #engine .sx-bar { max-width: 780px; margin: 18px auto 10px; }

  #engine #sx-out { padding: 4px 0 16px; }
  #engine .sx-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; padding: 10px 4px 4px; align-items: start; }
  #engine .sx-gh { margin: 30px 4px 18px; font-size: 1.8rem; }
  #engine .sr { padding: 16px 16px 15px 14px; }
  #engine .sr .tt { font-size: 1.2rem; }

  @media (hover: hover) {
    a.sr { transition: transform .2s cubic-bezier(.3, 1.4, .5, 1), box-shadow .2s ease; }
    a.sr:hover { rotate: 0deg; transform: translateY(-5px); box-shadow: 4px 8px 0 color-mix(in srgb, var(--c) 34%, transparent); }
    .sx-tab:hover { transform: translateY(-3px); }
  }

  /* ================= SETTINGS ================= */
  #profile { padding-inline: clamp(40px, 5vw, 96px); padding-top: 84px; }
  #profile > .content { width: 100%; max-width: 1240px; margin-inline: auto; }
  #profile header { max-width: 760px; margin-inline: auto; }
  #profile .hdr-note .sub { font-size: 1.15rem; }
  #profile .sset { column-count: 2; column-gap: clamp(36px, 4vw, 72px); padding-top: 14px; padding-bottom: 90px; }
  #profile .sg { break-inside: avoid; margin-bottom: 32px; }
  #profile .sset-end { column-span: all; margin-top: 10px; }
  #profile .sg-t { font-size: 2rem; }
  #profile .sc-t { font-size: 1.3rem; }
  #profile .sc-tx small { font-size: .84rem; }

  @media (hover: hover) {
    .sc { transition: transform .2s cubic-bezier(.3, 1.4, .5, 1), box-shadow .2s ease; }
    a.sc:hover, button.sc:hover { rotate: 0deg; transform: translateY(-3px); box-shadow: 4px 8px 0 color-mix(in srgb, var(--c) 38%, transparent); }
  }
}

/* narrower desktops: a single, centred settings column */
@media (min-width: 1024px) and (max-width: 1199px) {
  #profile .sset { column-count: 1; max-width: 720px; margin-inline: auto; }
}

/* large monitors / TVs */
@media (min-width: 1700px) {
  #engine .subject-body { max-width: 1500px; }
  #engine .sx-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #engine .sx, #engine .sx-bar { max-width: 900px; }
  #profile > .content { max-width: 1500px; }
}
