/* =========================================================================
   MOBILVERSION — OM MIG (telefon, ≤ 809.98px)

   The phone version of om-mig.html, section by section. Loaded right after
   css/mobil.css (which owns the shared pieces: top bar, menu, footer, book
   button, tokens). Everything sits inside the phone media block, and every
   selector is scoped to body.cm-page-om-mig, so desktop and the other pages
   are untouched by construction.

   Behaviour (the story fold) lives in js/mobil-om-mig.js.

   Page body: the Framer hero ([data-framer-name="Header"]) and then the
   hand-built Tailwind block #injected-about-content (om-mig.html template
   "new-tailwind-content"):
     1. Hero            "Jeg fandt hjem, til mig selv."
     2. Min historie    "Jeg har selv stået, hvor du står."
     3. Min metode      "Self, Soul, Succes" (black band)
     4. Faglig baggrund "Erfaring, du kan mærke." (five icon cards)
     5. Er du et match? (bento)
     6. Næste skridt    "Usikker, hvor du starter?"
   ========================================================================= */

@media (max-width: 809.98px) {

  /* ---------------------------------------------------------------------
     0. Shared bits for this page: section titles one size, balanced lines,
     eyebrows the house eyebrow, and a gentler, quicker scroll reveal.
     --------------------------------------------------------------------- */
  body.cm-page-om-mig #injected-about-content h2 {
    font-size: 34px !important;
    line-height: 1.1 !important;
    letter-spacing: -0.01em !important;
    text-wrap: balance;
  }
  body.cm-page-om-mig #injected-about-content section > div > p.text-xs,
  body.cm-page-om-mig #injected-about-content section > p.text-xs,
  body.cm-page-om-mig #injected-about-content section .max-w-7xl > p.text-xs,
  body.cm-page-om-mig #injected-about-content .cm-match .cm-match-eyebrow {
    font-size: 11px !important;
    font-weight: 650 !important;
    letter-spacing: 0.16em !important;
    line-height: 1.4 !important;
  }

  /* Reveals: shared, see css/mobil.css "SUB-PAGE REVEALS" */

  /* 1. HERO — shared by the four sub-pages, see css/mobil.css "SUB-PAGE HERO" */

  /* ---------------------------------------------------------------------
     2. MIN HISTORIE — eyebrow, title, the portrait, then the story folded
     to its first lines ("Fold ud" opens it in place), then the button.
     The text column dissolves so the portrait can sit under the title.
     --------------------------------------------------------------------- */
  body.cm-page-om-mig #injected-about-content section.cm-reveal-section {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 72px var(--cm-m-gutter) 72px !important;
  }
  body.cm-page-om-mig #injected-about-content section.cm-reveal-section > .md\:w-1\/2:not(.cm-fr-host) {
    display: contents !important;
  }
  body.cm-page-om-mig #injected-about-content section.cm-reveal-section p.text-xs { order: 1; margin: 0 !important; }
  body.cm-page-om-mig #injected-about-content section.cm-reveal-section h2        { order: 2; margin: 14px 0 0 !important; }
  /* (left, as on the computer — Oliver 2026-11-26) */
  body.cm-page-om-mig #injected-about-content section.cm-reveal-section .cm-fr-host { order: 3; margin-top: 28px !important; }
  body.cm-page-om-mig #injected-about-content section.cm-reveal-section > .md\:w-1\/2 > div.cm-reveal { order: 4; margin-top: 26px !important; }

  /* the portrait: full width, head to waist (custom.css zooms it from the top) */
  body.cm-page-om-mig #injected-about-content .cm-fr-host-about {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    top: 0 !important;
  }
  body.cm-page-om-mig #injected-about-content .cm-fr-host-about .cm-about-portrait-parallax-frame {
    /* 5:6 at full width; on wide phones / small tablets it stops at 440px
       wide (a wide box cut her head off) and sits on the left like the text */
    width: min(100%, 440px) !important;
    aspect-ratio: 5 / 6 !important;
    height: auto !important;
  }

  /* text, then the fold toggle, then the button */
  body.cm-page-om-mig #injected-about-content section.cm-reveal-section > .md\:w-1\/2 > div.cm-reveal {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
  }
  body.cm-page-om-mig #injected-about-content section.cm-reveal-section .space-y-6 {
    width: 100% !important;
    font-size: 16px !important;
    line-height: 1.65 !important;
  }
  body.cm-page-om-mig #injected-about-content section.cm-reveal-section .space-y-6 > p {
    font-size: 16px !important;
    line-height: 1.65 !important;
  }
  body.cm-page-om-mig #injected-about-content section.cm-reveal-section .space-y-6 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 18px !important;
  }
  body.cm-page-om-mig #injected-about-content section.cm-reveal-section .space-y-6 > p.cm-lead {
    font-size: 18px !important;
    line-height: 1.6 !important;
  }
  body.cm-page-om-mig #injected-about-content section.cm-reveal-section .space-y-6.cm-m-fold {
    --cm-fade-bot: 80px;
    max-height: var(--cm-m-fold-h, 196px);
    overflow: hidden !important;
    transition: max-height 0.75s cubic-bezier(0.22, 0.7, 0.2, 1) !important;
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--cm-fade-bot)), rgba(0, 0, 0, 0) 100%);
            mask-image: linear-gradient(to bottom, #000 calc(100% - var(--cm-fade-bot)), rgba(0, 0, 0, 0) 100%);
  }
  body.cm-page-om-mig #injected-about-content section.cm-reveal-section .space-y-6.cm-m-fold.is-open {
    --cm-fade-bot: 0px;
    -webkit-mask-image: none;
            mask-image: none;
  }
  body.cm-page-om-mig #injected-about-content section.cm-reveal-section .cm-m-more {
    margin: 14px 16px 0 0 !important;
    min-height: 44px;
  }
  /* the button to the right of the toggle, on one line, as on the front page
     (its label is shortened to "Se mine forløb" by js so both always fit) */
  body.cm-page-om-mig #injected-about-content section.cm-reveal-section .mt-10 {
    width: auto !important;
    margin: 14px 0 0 auto !important;
  }
  body.cm-page-om-mig #injected-about-content section.cm-reveal-section .btn-dark {
    min-height: 44px;
  }

  /* ---------------------------------------------------------------------
     3. MIN METODE — the black band: centred header, the three steps as a
     tight list (number + name, then the text on its hairline), the button.
     --------------------------------------------------------------------- */
  body.cm-page-om-mig #injected-about-content section.bg-dark-brown {
    padding: 72px var(--cm-m-gutter) 72px !important;
  }
  body.cm-page-om-mig #injected-about-content section.bg-dark-brown p.text-xs {
    margin: 0 0 14px !important;
  }
  body.cm-page-om-mig #injected-about-content section.bg-dark-brown h2 {
    margin: 0 !important;
  }
  body.cm-page-om-mig #injected-about-content section.bg-dark-brown .grid {
    grid-template-columns: 1fr !important;   /* Tailwind's md: three columns start at 768 */
    gap: 36px !important;
    margin-top: 36px !important;
    padding-top: 36px !important;
  }
  body.cm-page-om-mig #injected-about-content section.bg-dark-brown .grid > div > .flex {
    margin-bottom: 14px !important;
  }
  body.cm-page-om-mig #injected-about-content section.bg-dark-brown .grid .text-6xl {
    font-size: 46px !important;
    margin-right: 16px !important;
  }
  body.cm-page-om-mig #injected-about-content section.bg-dark-brown .grid h3 {
    font-size: 21px !important;
    line-height: 1.2 !important;
  }
  body.cm-page-om-mig #injected-about-content section.bg-dark-brown .grid p {
    font-size: 16px !important;
    line-height: 1.65 !important;
    padding-left: 18px !important;
    margin-left: 4px !important;
  }
  body.cm-page-om-mig #injected-about-content section.bg-dark-brown .mt-20 {
    margin-top: 44px !important;
  }
  body.cm-page-om-mig #injected-about-content section.bg-dark-brown .btn-light {
    min-height: 44px;
  }
  /* no lift on tap (desktop hover) */
  body.cm-page-om-mig #injected-about-content section.bg-dark-brown .grid > div {
    transform: none !important;
  }

  /* ---------------------------------------------------------------------
     4. FAGLIG BAGGRUND — centred header, then the five credentials as a
     list: icon on the left, name and line on the right (the 2-column grid
     squeezed the text into ~130px columns, the fifth alone at the bottom).
     --------------------------------------------------------------------- */
  body.cm-page-om-mig #injected-about-content section.max-w-\[90rem\] {
    padding: 72px var(--cm-m-gutter) 72px !important;
  }
  body.cm-page-om-mig #injected-about-content section.max-w-\[90rem\] > p.text-xs {
    margin: 0 0 14px !important;
  }
  body.cm-page-om-mig #injected-about-content section.max-w-\[90rem\] h2 {
    margin: 0 !important;
  }
  body.cm-page-om-mig #injected-about-content section.max-w-\[90rem\] > .grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    margin-top: 32px !important;
    padding: 0 !important;
    border-top: 1px solid rgba(74, 55, 48, 0.1);
  }
  body.cm-page-om-mig #injected-about-content .cm-icon-card {
    display: grid !important;
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
    column-gap: 18px;
    row-gap: 4px;
    align-items: start !important;
    padding: 20px 0 !important;
    border-bottom: 1px solid rgba(74, 55, 48, 0.1);
    text-align: left !important;
  }
  body.cm-page-om-mig #injected-about-content .cm-icon-card .cm-icon-circle {
    grid-row: 1 / 3;
    width: 56px !important;
    height: 56px !important;
    margin: 0 !important;
  }
  body.cm-page-om-mig #injected-about-content .cm-icon-card .cm-icon-circle svg {
    width: 26px !important;
    height: 26px !important;
  }
  body.cm-page-om-mig #injected-about-content .cm-icon-card h4 {
    margin: 2px 0 0 !important;
    font-size: 18px !important;
    line-height: 1.25 !important;
    text-align: left !important;
    white-space: normal !important;
  }
  body.cm-page-om-mig #injected-about-content .cm-icon-card p {
    padding: 0 !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    text-align: left !important;
  }
  /* The glow lights up as you scroll down to each one (js adds .cm-m-lit
     when it passes ~65% of the screen, as the Kurser timeline does), not
     on a tap: a tap no longer touches them. */
  body.cm-page-om-mig #injected-about-content .cm-icon-card {
    pointer-events: none;
  }
  body.cm-page-om-mig #injected-about-content .cm-icon-card .cm-icon-circle,
  body.cm-page-om-mig #injected-about-content .cm-icon-card p {
    transform: none !important;
  }
  body.cm-page-om-mig #injected-about-content .cm-icon-card.cm-m-lit .cm-icon-circle {
    background: rgba(var(--cm-accent-rgb), 0.15);
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1), 0 0 20px rgba(var(--cm-accent-rgb), 0.2);
    border-color: transparent;
    color: var(--cm-accent) !important;
  }
  body.cm-page-om-mig #injected-about-content .cm-icon-card.cm-m-lit .cm-icon-circle::after {
    transform: rotate(45deg) translateX(100%);     /* the shine sweeps once */
  }
  body.cm-page-om-mig #injected-about-content .cm-icon-card.cm-m-lit h4 {
    color: var(--cm-accent);
  }
  body.cm-page-om-mig #injected-about-content .cm-icon-card.cm-m-lit p {
    color: #4a3e33;
  }

  /* ---------------------------------------------------------------------
     5. ER DU ET MATCH? — the bento stacks: intro tile, the photo, then the
     five statements as compact rows (number beside the line) instead of
     five 154px boxes. 02 stays the dark one.
     --------------------------------------------------------------------- */
  body.cm-page-om-mig #injected-about-content .cm-match {
    --cm-match-gap: 10px;
    padding: 0 0 72px !important;         /* Faglig baggrund above already ends in 72px */
  }
  body.cm-page-om-mig #injected-about-content .cm-match-grid {
    width: calc(100% - 2 * var(--cm-m-gutter)) !important;
  }
  body.cm-page-om-mig #injected-about-content .cm-match-intro {
    padding: 30px 22px 30px !important;
  }
  body.cm-page-om-mig #injected-about-content .cm-match .cm-match-eyebrow {
    margin: 0 0 14px !important;
  }
  body.cm-page-om-mig #injected-about-content .cm-match h2.cm-match-title {
    /* 30px, a touch smaller on narrow phones so "undtagen kærligheden."
       stays one line (otherwise the dash starts a line on its own) */
    font-size: min(30px, calc((100vw - 2 * var(--cm-m-gutter) - 44px) / 10.2)) !important;
    line-height: 1.15 !important;
    margin: 0 0 16px !important;
  }
  body.cm-page-om-mig #injected-about-content .cm-match p.cm-match-body {
    font-size: 16px !important;
    line-height: 1.65 !important;
  }
  /* The rest as a small bento like desktop's (Oliver 2026-11-26): the
     photo tall on the left with 01 and 02 stacked beside it, 03 across the
     full width, then 04 and 05 side by side. */
  body.cm-page-om-mig #injected-about-content .cm-match-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  body.cm-page-om-mig #injected-about-content .cm-match-intro { grid-column: 1 / -1 !important; }
  body.cm-page-om-mig #injected-about-content .cm-match-photo {
    grid-column: 1 !important;
    grid-row: 2 / 4 !important;
    min-height: 0 !important;
    height: auto !important;
  }
  body.cm-page-om-mig #injected-about-content .cm-match-photo img {
    object-position: 50% 18% !important;
  }
  body.cm-page-om-mig #injected-about-content .cm-match-tile:nth-child(3) { grid-column: 2; grid-row: 2; }
  body.cm-page-om-mig #injected-about-content .cm-match-tile:nth-child(4) { grid-column: 2; grid-row: 3; }
  body.cm-page-om-mig #injected-about-content .cm-match-tile:nth-child(5) { grid-column: 1 / -1; }
  body.cm-page-om-mig #injected-about-content .cm-match-tile {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    gap: 18px !important;
    min-height: 0;
    padding: 18px 16px 20px !important;
  }
  /* the two beside the photo: tall, so the photo gets a good height */
  body.cm-page-om-mig #injected-about-content .cm-match-tile--tall {
    min-height: 178px;
  }
  /* 03 across the width: number beside the line */
  body.cm-page-om-mig #injected-about-content .cm-match-tile:nth-child(5) {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 20px 20px !important;
  }
  body.cm-page-om-mig #injected-about-content .cm-match .cm-match-n {
    font-size: 26px !important;
    flex: none;
  }
  body.cm-page-om-mig #injected-about-content .cm-match .cm-match-tile p {
    font-size: 15px !important;
    line-height: 1.45 !important;
  }
  body.cm-page-om-mig #injected-about-content .cm-match .cm-match-tile:nth-child(5) p {
    font-size: 16px !important;
  }

  /* ---------------------------------------------------------------------
     6. NÆSTE SKRIDT — centred, button and the "Betroet af" line under it.
     --------------------------------------------------------------------- */
  body.cm-page-om-mig #injected-about-content section.pt-\[100px\].pb-0 {
    padding: 0 var(--cm-m-gutter) 0 !important;
  }
  body.cm-page-om-mig #injected-about-content section.pt-\[100px\].pb-0 > div[style] {
    margin-top: 0 !important;
  }
  body.cm-page-om-mig #injected-about-content section.pt-\[100px\].pb-0 p.text-xs {
    margin: 0 0 14px !important;
  }
  body.cm-page-om-mig #injected-about-content section.pt-\[100px\].pb-0 h2 {
    margin: 0 0 18px !important;
  }
  body.cm-page-om-mig #injected-about-content section.pt-\[100px\].pb-0 p.font-light {
    font-size: 16px !important;
    line-height: 1.65 !important;
    margin: 0 0 32px !important;
  }
  body.cm-page-om-mig #injected-about-content section.pt-\[100px\].pb-0 .flex-col {
    gap: 26px !important;
  }
  body.cm-page-om-mig #injected-about-content section.pt-\[100px\].pb-0 a.cm-cta-dark {
    min-height: 44px !important;
  }
}

/* Guard: phone-only pieces never show above the phone width */
@media (min-width: 810px) {
  body.cm-page-om-mig .cm-m-more {
    display: none !important;
  }
}
