/* Veeday Consultants — privacy policy, phone layer (round 11).
   Everything is inside the phone query; outside it the only rule hides the phone-only pieces.
   Pairs with js/m-privacy.js and the shell in mobile.css / js/mobile.js. */

.pchip { display: none; }

@media (max-width: 700px), (hover: none) and (pointer: coarse) and (max-height: 500px) {

  /* ── Reading typography ─────────────────────────────────── */
  .policy.psection { padding: 40px 0 64px; }
  .policy .prose { font-size: 17px; line-height: 1.72; color: rgba(17, 17, 17, .74); }
  .policy .prose h2 {
    font-size: 26px; line-height: 1.16; letter-spacing: -.016em;
    margin: 1.6em 0 .5em; padding-top: 1em;
  }
  .policy .prose h2:first-child { margin-top: 0; padding-top: 0; }
  .policy .prose h2 { scroll-margin-top: calc(var(--nav-h) + 20px); }

  /* hero: tighter, the date reads as a quiet meta line */
  .phero__lede { font-size: 14px; letter-spacing: .01em; }

  /* ── Inline contents: one column of hairline rows with chevrons ── */
  .policy__grid { gap: 30px; }
  .policy__toc { padding-bottom: 0; border-bottom: 0; }
  .policy__toc-label { margin-bottom: 10px; }
  .policy__toc ol { display: block; border-top: 1px solid var(--line); }
  .policy__toc li a {
    position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    min-height: 52px; padding: 12px 2px; margin: 0;
    font-family: var(--serif); font-size: 18.5px; line-height: 1.25; letter-spacing: -.005em;
    color: var(--fg); border-bottom: 1px solid var(--line);
  }
  .policy__toc li a::after {
    content: ''; flex: none; width: 7px; height: 7px; margin-right: 6px;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px); opacity: .32;
  }
  .policy__toc li a:active { background: rgba(17, 17, 17, .04); }
  .policy__toc li a.is-current { color: var(--fg); }
  .policy__back { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; }

  /* ── Floating contents chip (shown by js/m-privacy.js) ───── */
  .pchip {
    --m-display: flex; display: flex; align-items: center; gap: 11px;
    position: fixed; left: 50%; z-index: 90;
    /* never lower than 38px: the shell samples the colour 30px above the bottom edge to tint the dock */
    bottom: calc(max(var(--m-dock-offset), 24px) + 14px);
    max-width: calc(100% - 2 * var(--pad)); min-height: 48px;
    padding: 6px 18px 6px 6px;
    background: var(--ink); color: var(--paper);
    border: 1px solid rgba(250, 250, 248, .1); border-radius: 999px;
    box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .6), 0 2px 6px -2px rgba(0, 0, 0, .25);
    font-family: var(--sans); text-align: left;
    opacity: 0; visibility: hidden; transform: translate(-50%, 18px) scale(.96);
    transition: opacity .35s, transform .5s var(--ease), bottom .35s var(--ease), visibility 0s .5s;
  }
  .pchip[hidden] { display: none; }
  .pchip.is-shown { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .35s, transform .5s var(--ease), bottom .35s var(--ease), visibility 0s; }
  .pchip:active { transform: translate(-50%, 0) scale(.97); transition-duration: .08s; }

  .pchip__ring { position: relative; flex: none; width: 36px; height: 36px; }
  .pchip__ring svg { display: block; width: 36px; height: 36px; transform: rotate(-90deg); }
  .pchip__ring circle { fill: none; stroke-width: 2; }
  .pchip__track { stroke: rgba(250, 250, 248, .16); }
  .pchip__fill { stroke: #F0554E; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .25s linear; }
  /* three short lines: a contents glyph in the middle of the ring */
  .pchip__ring::after {
    content: ''; position: absolute; left: 12px; top: 13px; width: 12px; height: 10px;
    background:
      linear-gradient(currentColor, currentColor) 0 0 / 12px 1.5px no-repeat,
      linear-gradient(currentColor, currentColor) 0 50% / 9px 1.5px no-repeat,
      linear-gradient(currentColor, currentColor) 0 100% / 11px 1.5px no-repeat;
    opacity: .9;
  }
  .pchip__text { display: flex; flex-direction: column; min-width: 0; gap: 3px; }
  .pchip__k { font-size: 13px; font-weight: 500; letter-spacing: .01em; color: rgba(250, 250, 248, .6); line-height: 1; }
  .pchip__v { font-family: var(--serif); font-size: 16px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 62vw; }

  /* ── Contents sheet: a reading map ───────────────────────── */
  .psheet .m-sheet__head { align-items: flex-end; }
  .psheet__bar { position: relative; height: 2px; margin: 0 0 6px; background: rgba(17, 17, 17, .08); border-radius: 2px; overflow: hidden; }
  .psheet__bar span { position: absolute; inset: 0; background: var(--red); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

  .psheet__list { list-style: none; margin: 0; padding: 4px 0 0; position: relative; }
  /* the spine that joins the markers */
  .psheet__list::before { content: ''; position: absolute; left: 6px; top: 30px; bottom: 30px; width: 1px; background: rgba(17, 17, 17, .22); }
  .psheet__list a {
    position: relative; display: flex; align-items: center; gap: 18px;
    min-height: 54px; padding: 10px 0;
    font-family: var(--serif); font-size: 19px; line-height: 1.25; letter-spacing: -.005em; color: var(--ink);
  }
  .psheet__list a::before {
    content: ''; position: relative; flex: none; width: 13px; height: 13px; border-radius: 50%;
    background: var(--paper); border: 1px solid rgba(17, 17, 17, .3); box-sizing: border-box;
    transition: background-color .3s, border-color .3s, box-shadow .3s;
  }
  .psheet__list a.is-read::before { background: var(--ink); border-color: var(--ink); }
  .psheet__list a.is-current { color: var(--red); }
  .psheet__list a.is-current::before { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 4px rgba(200, 32, 26, .14); }
  .psheet__list a:active { opacity: .6; }

  .psheet__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(17, 17, 17, .1); }
  .psheet__actions .btn { min-height: 48px; padding: 12px 10px; font-size: 14px; white-space: normal; text-align: center; }
  .psheet__actions .btn--ink { --b-bg: var(--ink); --b-fg: var(--paper); --b-bd: var(--ink); }
  .psheet__actions .btn--line { --b-bg: transparent; --b-fg: var(--ink); --b-bd: rgba(17, 17, 17, .22); }

  /* ── Landscape phones ────────────────────────────────────── */
  @media (max-height: 500px) {
    .pchip { min-height: 44px; padding: 4px 16px 4px 4px; bottom: calc(max(var(--m-dock-offset), 28px) + 10px); }
    .pchip__v { max-width: 40vw; }
    .psheet__list a { min-height: 46px; padding: 6px 0; font-size: 17px; }
    .psheet__list::before { top: 23px; bottom: 23px; }
    .psheet__actions { margin-top: 12px; padding-top: 12px; }
  }

  @media (prefers-reduced-motion: reduce) {
    .pchip, .pchip.is-shown, .pchip__fill, .psheet__list a::before { transition: none !important; }
    .pchip:active { transform: translate(-50%, 0); }
  }
}
