/* ===================================
   LINKTREE — the home page, drawn as Avital's Instagram profile
   ===================================
   Every size and color here was measured on the owner's screenshots of
   Instagram (2026-11-03/04): the iPhone app (402 pt wide, 3x) and the web
   (1x). The plan and the measurements: private/plan/linktree-instagram/.

   .ig is the page and the container the layout asks: under 720 px it is
   the app, from 720 px Instagram on the web. Light or dark follows the
   device (data-mode, set by linktree.js from prefers-color-scheme).
   =================================== */

html { background: #FFFFFF; }
@media (prefers-color-scheme: dark) { html { background: #0B1014; } }
/* the body's font is the legal sheet's (it opens outside .ig): the site's, as before */
body.lt-body { margin: 0; font-family: 'Rubik', 'Noto Sans Hebrew', system-ui, -apple-system, sans-serif; }
.ig, .ig * { box-sizing: border-box; }
[hidden] { display: none !important; }

.ig {
  --m-bg: #FFFFFF; --m-fg: #000000; --m-soft: #737373; --m-line: #DBE0E4; --m-btn: #EEF2F5; --m-ring: #DBE0E4;
  --m-hl-in: #F4F6F8; --m-tile: #F3F3F3; --m-glass: rgba(255, 255, 255, 0.72); --m-backdrop: rgba(0, 0, 0, 0.65);
  --m-toast-bg: #262626; --m-toast-fg: #FFFFFF; --m-badge: #0095F6; --m-sheet: #FFFFFF; --m-veil: rgba(255, 255, 255, 0.35);
  --c-sage: #C8DFD3; --c-clay: #F4D4C8;
  position: relative; min-height: 100vh; min-height: 100dvh;
  container-type: inline-size; container-name: dev;
  background: var(--m-bg); color: var(--m-fg);
  font-family: -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px; line-height: 18px; -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
.ig[data-mode="dark"] {
  --m-bg: #0B1014; --m-fg: #FFFFFF; --m-soft: #A8A8A8; --m-line: #2B3036; --m-btn: #2B3036; --m-ring: #565F6B;
  --m-hl-in: #1A2026; --m-glass: rgba(43, 48, 54, 0.62); --m-toast-bg: #F5F5F5; --m-toast-fg: #000000;
  /* the app's dark blue is lighter: #00A5FF on the owner's screenshot (2026-11-04) */
  --m-badge: #00A2F6; --m-sheet: #1F2329; --m-veil: rgba(11, 16, 20, 0.35);
}
.ig button { font: inherit; color: inherit; cursor: pointer; }
.ig a { color: inherit; text-decoration: none; }
.ig :focus-visible { outline: 2px solid var(--m-fg); outline-offset: 2px; }
.ig .he { unicode-bidi: plaintext; }
.ig[dir="ltr"] .he { text-align: left; }
.ig[dir="rtl"] .flip svg { transform: scaleX(-1); }
.wrap { max-width: 935px; margin: 0 auto; padding-bottom: 28px; }

.skip-link { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 20; padding: 8px 12px; border-radius: 8px; background: var(--m-fg); color: var(--m-bg); }
.skip-link:focus { top: 8px; }

/* the blue badge beside the handle */
.badge { display: inline-block; flex: none; width: 15.3px; height: 15.3px; color: var(--m-badge); vertical-align: -2px; }
.badge svg { display: block; width: 100%; height: 100%; }
.badge__check { stroke: var(--m-bg); }

/* ---------- the app's top bar, as a visitor sees a profile (the owner's screenshot, 2026-11-04) ----------
   50 high; the chevron 11 x 20 centered 37.35 from the edge, the handle 20/700 13.35 after its
   44 button, the badge 4.4 after the handle, the dots 16 wide 38.15 from the other edge;
   mirrored in Hebrew, the handle and its badge still read left to right */
.p-bar { height: 50px; display: flex; align-items: center; padding-inline: 15.35px 16.15px; }
.p-back, .p-more { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; padding: 0; color: var(--m-fg); }
.p-back svg { width: 11.5px; height: 20px; }
.p-more svg { width: 16px; height: 4px; }
.p-bar .p-more { margin-inline-start: auto; }
.p-bar__id { display: flex; align-items: center; gap: 4.4px; min-width: 0; margin-inline-start: 13.35px; direction: ltr; }
.p-bar__id b { font-size: 20px; line-height: 24px; font-weight: 700; white-space: nowrap; }

/* ---------- the header: the photo with its grey ring, the name line over the counts ---------- */
.p-head { position: relative; display: grid; grid-template-columns: 86px minmax(0, 1fr); column-gap: 21.33px; align-items: center; padding: 10.5px 16px 0; }
/* the ring and its gap 10 device px each at 3x, as the app's (139 to 149 from the photo's center on the owner's
   screenshot, 390 pt, 2026-11-04; 3.17 and 3.33 drew 9 and 10 — an outline is snapped down to whole pixels) */
.p-avatar { width: 86px; height: 86px; border-radius: 50%; object-fit: cover; background: var(--m-tile); outline: 3.34px solid var(--m-ring); outline-offset: 3.34px; }
/* the name's ink 33.67 above the photo's center, the numbers' 4 above it (the owner's screenshot, 390 pt) */
.p-id { min-width: 0; padding-bottom: 7.89px; }
.p-handle { display: none; }
.p-name { margin: 0; font-size: 14px; line-height: 18px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 41 apart on a 402 pt phone, as measured; closer on a narrower one, so the three always fit
   (the English words are wider: down to 1 px on a 320 pt one) */
.p-counts { list-style: none; margin: 11.33px 0 0; padding: 0; display: flex; gap: clamp(12px, calc((100cqi - 311px) / 2), 41px); }
.ig[dir="ltr"] .p-counts { gap: clamp(1px, calc((100cqi - 318px) / 2), 41px); }
.p-counts li { display: grid; }
.p-counts b { font-size: 16px; line-height: 18px; font-weight: 600; }
.p-counts span { font-size: 14px; line-height: 18px; }
.p-actions { display: flex; gap: 5.33px; padding: 0 16px; margin-top: 22px; }
/* ---------- the bio: its first lines under the photo's row, across the width, 14/18 — on the owner's screenshot
   (390 pt, 3x) the Hebrew letters' tops 60, 78 and 96 under the photo's center, the buttons 19.33 under the last
   row; each line in its own direction (the first reads "B.Sc, R.D |" then the Hebrew, as written), all of them
   set to the interface's side ---------- */
.p-bio { grid-column: 1 / -1; margin-top: 11.33px; font-size: 14px; line-height: 18px; }
.p-bio__line { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; unicode-bidi: plaintext; text-align: left; }
.ig[dir="rtl"] .p-bio__line { text-align: right; }
.p-head:has(.p-bio:not(:empty)) + .p-actions { margin-top: 19.67px; }
/* the photo's ring as the page arrives: linktree.js draws the app's loading ring here, over the photo's cell
   (the outline under it hidden), and keeps the whole ring drawn after it */
.p-ring { position: absolute; grid-area: 1 / 1 / 2 / 2; inset: 0; margin: auto; overflow: visible; pointer-events: none; }
.p-ring path { fill: none; stroke: var(--m-ring); stroke-linecap: round; }
.p-avatar.is-ringing { outline-color: transparent; }
.p-btn { flex: 1; min-width: 0; height: 31.67px; display: flex; align-items: center; justify-content: center; border-radius: 7px; padding: 0 12px; font-size: 14px; line-height: 18px; font-weight: 600; background: var(--m-btn); color: var(--m-fg); white-space: nowrap; }
/* the small square one (Instagram's +person): the WhatsApp */
.p-btn--icon { flex: none; width: 31.67px; padding: 0; }
.p-btn--icon svg { width: 16px; height: 16px; }

/* ---------- highlights: 64 outer, the ring 3.4, a 3.33 gap, 82 apart, labels 12/400 ---------- */
.p-hl { display: flex; gap: 8px; overflow-x: auto; padding: 18.33px 9px 0; scrollbar-width: none; }
.p-hl::-webkit-scrollbar { display: none; }
.hl { flex: none; width: 74px; display: flex; flex-direction: column; align-items: center; border: 0; background: none; padding: 0; }
/* the ring 3.4: 10 px at 3x like the app's (3.33 drew 9 — a border is snapped down to whole pixels) */
.hl__ring { width: 64px; height: 64px; border-radius: 50%; border: 3.4px solid var(--m-ring); padding: 3.33px; }
/* the shown one: Instagram's story ring instead of a black one — the gradient on the diagonal, yellow at the
   bottom left, orange on the left and bottom, magenta at the top and right (the owner's screenshot, 2026-11-04);
   the gap inside it the page's color */
.hl[aria-pressed="true"] .hl__ring { border-color: transparent; background: linear-gradient(var(--m-bg), var(--m-bg)) padding-box, linear-gradient(45deg, #FFD600 0%, #FF7A00 30%, #FF0069 60%, #D300C5 82%, #7638FA 100%) border-box; }
/* the cover: its color from linktree.js (a gradient), the emoji big over it with a soft shadow */
.hl__in { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; background: var(--m-hl-in); font-size: 30px; line-height: 1; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.22); box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.08); }
.hl__label { margin-top: 1.67px; font-size: 12px; line-height: 16px; max-width: 74px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- the grid: 3 across, 3:4 tiles, 1 px apart ---------- */
.p-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 14px; }
.p-empty { grid-column: 1 / -1; padding: 40px 16px; text-align: center; color: var(--m-soft); }
.tile { position: relative; display: block; border: 0; padding: 0; background: none; min-width: 0; text-align: start; }
.tile__media { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--m-tile); container-type: inline-size; }
.tile__pin { position: absolute; top: 6px; inset-inline-end: 6px; z-index: 1; width: 20px; height: 20px; color: #FFFFFF; filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, 0.45)); }
.tile__pin svg { display: block; width: 100%; height: 100%; }
.tile__hover { display: none; }

/* a picture inside a tile or a post: the whole frame, in full color */
.media { position: absolute; inset: 0; background: var(--m-tile); display: grid; place-items: center; }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media__emoji { font-size: 34cqi; line-height: 1; }

/* a product's title card (linktree.js titleCardHTML): Rubik on lines of color, low in the middle;
   the head as wide as the frame allows (by its length) up to 17 % of the width, the rest ~10 % */
.card { position: absolute; inset: auto 5% 10%; z-index: 1; display: flex; flex-direction: column; align-items: center; font-family: 'Rubik', sans-serif; direction: rtl; text-align: center; pointer-events: none; --k: 1; }
.card__line { display: block; max-width: 100%; padding: 0.05em 0.28em 0.12em; line-height: 1.08; color: #FFFFFF; background: var(--card); overflow-wrap: anywhere; }
.card__line--head { font-weight: 800; font-size: clamp(10px, calc(88cqi / (var(--chars) * 0.6) * var(--k)), calc(17cqi * var(--k))); letter-spacing: -0.01em; }
.card__line--tail { font-weight: 600; font-size: clamp(9px, calc(88cqi / (var(--chars) * 0.58)), calc(10cqi * var(--k))); }
/* four looks, by the product's place: a colored line over a white one; both in color; a white one over
   a colored one; a colored one over a cream one — the sizes a little apart, the height too */
.card--0 .card__line--tail { background: #FFFFFF; color: #262626; }
.card--1 { --k: 0.92; bottom: 14%; }
.card--2 { --k: 1.04; }
.card--2 .card__line--head { background: #FFFFFF; color: var(--card); }
.card--3 { --k: 0.97; bottom: 12%; }
.card--3 .card__line--tail { background: #F6EFE2; color: var(--card); }

/* a lecture's cover: its color, the fruits, the stage and its next open date */
.cover { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 4cqi; padding: 9cqi 8cqi; overflow: hidden; color: #3D4F43; font-family: 'Rubik', sans-serif; direction: rtl; text-align: right; }
.cover--sage { background: var(--c-sage); }
.cover--clay { background: var(--c-clay); }
.cover__kicker { font-size: clamp(9px, 7.5cqi, 18px); font-weight: 500; opacity: 0.8; }
.cover__name { font-size: clamp(15px, 15cqi, 44px); font-weight: 700; line-height: 1.05; }
.cover__date { align-self: flex-start; font-size: clamp(10px, 8.5cqi, 20px); font-weight: 600; background: rgba(255, 255, 255, 0.75); border-radius: 999px; padding: 1.5cqi 5cqi; }
.cover__art { position: absolute; inset-inline: 0; bottom: 0; width: 100%; }

/* a coupon's tile: the brand's logo on a ticket, the discount big, the code */
.coupon { position: absolute; inset: 0; display: flex; padding: 9cqi; background: var(--cp-bg); font-family: 'Rubik', sans-serif; direction: rtl; }
.coupon__card { position: relative; flex: 1; background: #FFFFFF; border-radius: 7cqi; display: flex; flex-direction: column; align-items: center; padding: 8cqi 7cqi 9cqi; box-shadow: 0 1.5cqi 5cqi rgba(0, 0, 0, 0.08); color: var(--cp-ink); text-align: center; }
.coupon__logo { height: 24cqi; width: 100%; display: grid; place-items: center; font-weight: 700; font-size: 11cqi; }
/* both limits as max: a percentage height doesn't resolve in the grid box, and a tall logo (Yasha's) ran over the cut */
.coupon__logo img { width: auto; height: auto; max-width: 86%; max-height: 24cqi; }
.coupon__cut { position: relative; width: calc(100% + 14cqi); margin: 6cqi 0 5cqi; border-top: 1.5px dashed var(--cp-line); }
.coupon__cut::before, .coupon__cut::after { content: ""; position: absolute; top: -4.5cqi; width: 9cqi; height: 9cqi; border-radius: 50%; background: var(--cp-bg); }
.coupon__cut::before { left: -4.5cqi; }
.coupon__cut::after { right: -4.5cqi; }
.coupon__pct { font-size: clamp(22px, 25cqi, 64px); font-weight: 800; line-height: 1; direction: ltr; letter-spacing: -0.02em; }
.coupon__off { margin-top: 1cqi; max-width: 100%; font-size: clamp(11px, 10cqi, 26px); font-weight: 700; line-height: 1.1; overflow-wrap: anywhere; }
.coupon__code { margin-top: auto; font-size: clamp(10px, 9.5cqi, 24px); font-weight: 700; border: 1.5px dashed currentColor; border-radius: 3cqi; padding: 1.2cqi 5cqi; direction: ltr; letter-spacing: 0.02em; }

.p-foot { padding: 26px 16px 0; text-align: center; color: var(--m-soft); font-size: 12px; line-height: 16px; direction: rtl; }
.p-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; }
.p-foot li + li::before { content: "·"; padding: 0 6px; }

/* ---------- the post feed, Instagram's "Posts" screen ---------- */
.feed { position: fixed; inset: 0; z-index: 30; background: var(--m-bg); color: var(--m-fg); animation: up .22s ease-out; }
@keyframes up { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.feed__bar { position: absolute; inset: 0 0 auto; z-index: 3; height: 64px; display: grid; grid-template-columns: 78px minmax(0, 1fr) 78px; align-items: center; }
/* no band of color behind the title: the content under it is blurred, fading out downward, with a faint
   veil of the background — the app's glass edge (the owner's screenshot, 2026-11-04) */
.feed__bar::before { content: ""; position: absolute; inset: 0 0 -18px; z-index: -1; pointer-events: none; background: linear-gradient(to bottom, var(--m-veil), transparent); -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px); -webkit-mask-image: linear-gradient(to bottom, #000 42%, transparent); mask-image: linear-gradient(to bottom, #000 42%, transparent); }
/* a browser without the blur: a denser veil, so the title stays readable */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .feed__bar::before { background: linear-gradient(to bottom, var(--m-bg) 30%, transparent); }
}
.feed__back { justify-self: start; margin-inline-start: 17px; width: 44px; height: 44px; border-radius: 50%; border: 0.5px solid rgba(128, 128, 128, 0.35); background: var(--m-glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); display: grid; place-items: center; padding: 0; color: var(--m-fg); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); }
.feed__back svg { width: 22px; height: 22px; }
.feed__title { text-align: center; display: grid; }
.feed__title b { font-size: 17px; line-height: 21px; font-weight: 600; }
.feed__title span { font-size: 12px; line-height: 15px; }
.feed__close { display: none; }
.feed__list { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding-top: 64px; }
/* the swipe back (linktree.js): the browser keeps the vertical scroll, the page gets the sideways drag;
   the screen's leading edge casts a shadow on the profile under it */
.feed, .feed__list { touch-action: pan-y; }
.feed.is-swiping { box-shadow: -12px 0 32px rgba(0, 0, 0, 0.22); }
.ig[dir="rtl"] .feed.is-swiping { box-shadow: 12px 0 32px rgba(0, 0, 0, 0.22); }
.feed__list::-webkit-scrollbar { display: none; }
.feed__arrow { display: none; }
.post { display: flex; flex-direction: column; padding-bottom: 26px; }
.post__head { order: -1; display: flex; align-items: center; gap: 13px; height: 58px; padding-inline: 12px 13px; }
.post__photo { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; outline: 1.6px solid var(--m-ring); outline-offset: 1.6px; }
.post__who { display: grid; min-width: 0; padding-top: 3px; }
.post__handle { display: flex; align-items: center; gap: 4px; font-size: 14px; line-height: 18px; font-weight: 600; direction: ltr; }
.ig[dir="rtl"] .post__handle { justify-content: flex-end; }
.post__handle .badge { width: 12px; height: 12px; }
.post__where { font-size: 13.75px; line-height: 17px; }
.post__media { position: relative; aspect-ratio: 4 / 5; container-type: inline-size; overflow: hidden; }
.post__side { display: contents; }
.post__cta { order: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; height: 44px; border-bottom: 1px solid var(--m-line); padding: 0 14px; background: var(--m-bg); color: var(--m-fg); font-size: 14px; font-weight: 600; }
.post__cta svg { width: 16px; height: 16px; flex: none; }
.post__actions { order: 2; display: flex; align-items: center; gap: 16px; height: 50px; padding-inline: 14px; }
.post__actions button { border: 0; background: none; padding: 0; width: 26px; height: 26px; display: grid; place-items: center; color: var(--m-fg); }
.post__actions svg { width: 26px; height: 26px; }
.post__actions [aria-pressed="true"] { color: #FF3040; }
.post__body { order: 3; padding: 12px 13px 0; display: grid; gap: 2px; }
.post__actions + .post__body { padding-top: 0; }
.post__cap-photo { display: none; }
.cap1 { display: flex; flex-wrap: wrap; justify-content: space-between; column-gap: 8px; font-size: 14px; line-height: 18px; }
.cap1 b { font-weight: 600; flex: none; direction: ltr; display: inline-flex; align-items: center; gap: 4px; }
.cap1 b .badge { display: none; }
.cap1 span { flex: 1 1 auto; text-align: right; direction: rtl; }
.cap { margin: 0; font-size: 14px; line-height: 18px; text-align: right; direction: rtl; }
.dates { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 2px; font-size: 14px; direction: rtl; }
.dates li { display: flex; gap: 8px; font-variant-numeric: tabular-nums; }
.dates li b { font-weight: 600; min-width: 46px; }
.dates li em { font-style: normal; color: var(--m-soft); }
.code { display: flex; align-items: center; gap: 8px; margin-top: 8px; direction: rtl; }
.code span { color: var(--m-soft); font-size: 13px; }
.code b { font-weight: 600; letter-spacing: 0.03em; border: 1px dashed var(--m-soft); border-radius: 6px; padding: 1px 8px; direction: ltr; }
.code button { border: 0; height: 28px; background: var(--m-btn); border-radius: 7px; padding: 0 12px; font-size: 13px; font-weight: 600; }

/* ---------- the dots' sheet: Instagram's action sheet on a phone, its window on a computer ---------- */
.sheet { position: fixed; inset: 0; z-index: 35; display: flex; align-items: flex-end; background: rgba(0, 0, 0, 0.4); }
.sheet__panel { width: 100%; background: var(--m-sheet); color: var(--m-fg); border-radius: 16px 16px 0 0; padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px)); animation: up .22s ease-out; }
.sheet__grab { display: block; width: 36px; height: 5px; border-radius: 3px; margin: 0 auto 6px; background: var(--m-soft); opacity: 0.5; }
.sheet__list { list-style: none; margin: 0; padding: 0; }
.sheet__list li + li { border-top: 0.5px solid var(--m-line); }
.sheet__item { display: flex; align-items: center; width: 100%; height: 52px; padding: 0 20px; border: 0; background: none; color: inherit; font: inherit; font-size: 16px; line-height: 20px; text-align: start; direction: rtl; }
.ig[dir="ltr"] .sheet__item { direction: ltr; }
.sheet__item--cancel { color: var(--m-soft); }

.m-toast { position: fixed; z-index: 40; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); inset-inline: 0; margin: 0 auto; width: max-content; max-width: 86%; background: var(--m-toast-bg); color: var(--m-toast-fg); border-radius: 8px; padding: 10px 16px; font-size: 14px; opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; pointer-events: none; text-align: center; direction: rtl; }
.m-toast[data-on] { opacity: 1; transform: none; }

/* :hover only with a pointer that hovers: a tap never leaves it on */
@media (hover: hover) {
  .tile:hover .tile__media::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.06); }
  .p-foot a:hover { text-decoration: underline; }
  @container dev (min-width: 720px) {
    .tile:hover .tile__hover { opacity: 1; }
    .tile:hover .tile__media::after { display: none; }
  }
}

/* ---------- a computer: Instagram on the web (the owner's screenshots, 1x) ----------
   The header 680 wide over a wider grid; the photo 150 with a 3 px grey ring
   4 px out; the handle 24/700 with an 18 px badge; the name line 14/400; the
   counts 14 (numbers 600); the buttons 44 high under the header; highlights
   87 with a 4 px ring, labels 12/600; 3:4 tiles of 283, 1 px apart, the grid's
   top corners 4 px round, 5 across on a wide screen; the hover a 70 % black
   layer with white 16/700 in the middle; a post opens as a window: the
   picture 4:5 at the screen's height less 23 px a side, a 500 px panel.
   On a narrower screen (a tablet) the panel gives first, down to 335, then
   the picture, which keeps its 4:5 and the window its 50 px a side. */
@container dev (min-width: 720px) {
  .ig[data-mode="dark"] .wrap, .ig[data-mode="dark"] .feed { --m-fg: #F5F5F5; --m-btn: #25292E; --m-ring: #2B3036; }
  .wrap { max-width: none; padding: 40px 20px 0; }
  .p-bar { display: none; }
  .p-head { width: 680px; max-width: 100%; margin: 0 auto; grid-template-columns: 150px minmax(0, 1fr); column-gap: 29px; padding: 0; }
  .p-avatar { width: 150px; height: 150px; outline-width: 3px; outline-offset: 4px; grid-row: 1 / span 2; }
  .p-id { padding-bottom: 0; grid-column: 2; grid-row: 1; }
  /* the bio in the text column under the counts, each line in its own direction (the web's dir=auto), set to
     the interface's side; on the owner's screenshot (1x) the first line's ink 38 under the counts' ink, the
     buttons 28 under the last row, the photo centered on the column (a shorter bio raises it, as on Instagram) */
  .p-bio { grid-column: 2; grid-row: 2; margin-top: 20px; font-size: 14px; }
  .p-bio__line:first-child { position: relative; top: -1px; }
  .p-ring { grid-row: 1 / 3; }
  .p-head:has(.p-bio:not(:empty)) + .p-actions { margin-top: 28px; }
  .p-handle { display: flex; align-items: center; gap: 8px; font-size: 24px; line-height: 30px; font-weight: 700; direction: ltr; }
  .ig[dir="rtl"] .p-handle { justify-content: flex-end; }
  .p-handle .badge { width: 18px; height: 18px; vertical-align: 0; }
  /* the web's dots: 10 wide, ~2 high, 11 after the badge (the owner's screenshot, 1x) */
  .p-handle .p-more { width: 20px; height: 32px; margin-inline-start: -2px; }
  .p-handle .p-more svg { width: 10px; height: 2.5px; margin-top: 2px; }
  .p-name { margin-top: 4px; font-size: 14px; line-height: 18px; font-weight: 400; }
  .p-counts, .ig[dir="ltr"] .p-counts { margin-top: 12.6px; gap: 17px; }
  .p-counts li { display: flex; align-items: baseline; gap: 4px; }
  .p-counts b, .p-counts span { font-size: 14px; line-height: 18px; }
  .p-actions { width: 680px; max-width: 100%; margin: 36px auto 0; padding: 0; gap: 8px; }
  .p-btn { height: 44px; border-radius: 8px; }
  .p-btn--icon { width: 44px; }
  .p-btn--icon svg { width: 20px; height: 20px; }
  .p-hl { width: 680px; max-width: 100%; margin: 0 auto; gap: 10px; padding: 48px 14px 0; }
  .hl { width: 87px; }
  .hl__ring { width: 87px; height: 87px; border-width: 4px; padding: 3px; }
  .hl__in { font-size: 42px; }
  .hl__label { margin-top: 8px; font-size: 12px; line-height: 15px; font-weight: 600; max-width: 87px; }
  .p-grid { --cols: 3; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); max-width: calc(var(--cols) * 283px + (var(--cols) - 1) * 1px); margin: 40px auto 0; border-radius: 4px 4px 0 0; overflow: hidden; }
  .tile__pin { top: 6px; inset-inline-end: 8px; width: 22px; height: 22px; }
  .tile__hover { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 0 18px; background: rgba(0, 0, 0, 0.7); color: #FFFFFF; font-size: 16px; line-height: 20px; font-weight: 700; text-align: center; direction: rtl; opacity: 0; }
  .tile:focus-visible .tile__hover, .tile.is-hover .tile__hover { opacity: 1; }
  .p-foot { padding-top: 40px; }

  .feed { background: var(--m-backdrop); animation: none; }
  .sheet { align-items: center; justify-content: center; background: var(--m-backdrop); }
  .sheet__panel { width: 400px; max-width: calc(100% - 40px); border-radius: 12px; padding: 0; overflow: hidden; animation: none; }
  .sheet__grab { display: none; }
  .sheet__item { justify-content: center; height: 48px; font-size: 14px; }
  .feed__bar { display: none; }
  .feed__close { display: grid; place-items: center; position: fixed; top: 6px; inset-inline-end: 6px; z-index: 4; width: 40px; height: 40px; border: 0; background: none; padding: 0; color: #FFFFFF; }
  .feed__close svg { width: 26px; height: 26px; }
  .feed__list { inset: 0; padding: 23px 0; overflow: hidden; display: flex; align-items: center; justify-content: center; }
  .feed__arrow { display: grid; place-items: center; position: fixed; top: 50%; translate: 0 -50%; z-index: 4; width: 32px; height: 32px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, 0.92); color: #262626; }
  .feed__arrow svg { width: 18px; height: 18px; }
  .feed__arrow[data-prev] { inset-inline-start: 9px; }
  .feed__arrow[data-next] { inset-inline-end: 9px; }
  .feed__arrow[disabled] { visibility: hidden; }
  .post {
    display: none; padding: 0;
    --screen: calc(100vh - 46px);
    --side: clamp(335px, calc(100cqi - 100px - var(--screen) * 0.8), 500px);
    --tall: min(var(--screen), calc((100cqi - 100px - var(--side)) * 1.25));
  }
  @supports (height: 100dvh) { .post { --screen: calc(100dvh - 46px); } }
  .post.is-current { display: flex; flex-direction: row; height: var(--tall); }
  .post__media { flex: none; height: 100%; width: auto; aspect-ratio: 4 / 5; border-start-start-radius: 4px; border-end-start-radius: 4px; }
  .post__side { display: flex; flex-direction: column; width: var(--side); flex: none; background: var(--m-bg); border-start-end-radius: 4px; border-end-end-radius: 4px; min-height: 0; overflow: hidden; }
  .post__head { order: 0; flex: none; height: 60px; padding: 0 16px; border-bottom: 1px solid var(--m-line); }
  .post__photo { width: 32px; height: 32px; outline: 0; }
  .post__who { padding-top: 0; }
  .post__where { font-size: 12px; line-height: 16px; }
  .post__body { order: 1; flex: 1; overflow-y: auto; padding: 16px; display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 18px; row-gap: 6px; align-content: start; }
  .post__cap-photo { display: block; grid-row: 1 / span 4; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
  .post__body > :not(.post__cap-photo) { grid-column: 2; }
  .cap1 { justify-content: flex-start; padding-top: 6px; }
  .cap1 b .badge { display: inline-block; width: 12px; height: 12px; }
  .cap1 span { flex: 0 1 auto; text-align: start; }
  .post__actions { flex: none; order: 2; border-top: 1px solid var(--m-line); height: 54px; padding-inline: 16px; }
  .post__cta { flex: none; order: 3; height: 53px; border-top: 1px solid var(--m-line); border-bottom: 0; padding: 0 16px; }
}
@container dev (min-width: 1190px) { .p-grid { --cols: 4; } }
@container dev (min-width: 1480px) { .p-grid { --cols: 5; } }

@media (prefers-reduced-motion: reduce) {
  .feed, .sheet__panel { animation: none; }
  .m-toast { transition: none; }
}
