/* Social content packs in the portal (21 Nov 2026; js/portal-packs.js). Loaded after site.css and portal.css on
   /dashboard/ only; same tokens, light theme only. */

/* ---------- the offer (Overview and an empty Social packs page) ---------- */
.pk-offer { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: center; padding: clamp(20px, 3vw, 32px);
  border-radius: 24px; background: var(--grad-soft); border: 1px solid #DCE1FF; box-shadow: var(--shadow-sm); overflow: hidden; }
.pk-offer + * { margin-top: 18px; }
.pk-offer-text { display: grid; gap: 10px; justify-items: start; }
.pk-offer h2 { font-size: clamp(19px, 2.3vw, 26px); letter-spacing: -0.03em; }
.pk-offer p { color: var(--ink-2); font-size: 12px; max-width: 560px; }
.pk-offer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--navy-2); font-size: 10.88px; font-weight: 700; }
.pk-offer li::before { content: "\2713"; margin-right: 6px; color: var(--blue); }
.pk-kicker { font-size: 9.75px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.pk-offer-pics { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pk-offer-pics img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; box-shadow: 0 16px 34px -20px rgba(14, 20, 66, .55); }
.pk-offer-pics img:nth-child(2) { transform: translateY(-10px); }
.pk-offer--compact { margin-bottom: 18px; }
@media (max-width: 760px) {
  .pk-offer { grid-template-columns: minmax(0, 1fr); }
  .pk-offer-pics { order: -1; }
  .pk-offer .btn { width: 100%; }
}

/* ---------- the list of packs ---------- */
.pk-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pk-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.pk-row-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--tint-blue); color: var(--navy-2); }
.pk-row-ic svg { width: 20px; height: 20px; }
.pk-row-text { min-width: 0; display: grid; gap: 2px; }
.pk-row-title { font-weight: 800; color: var(--ink); text-decoration: none; }
.pk-row-title:hover { text-decoration: underline; }
.pk-row-text small { color: var(--ink-3); font-size: 10.12px; }
.pk-row-text p { color: var(--ink-2); font-size: 11.25px; }
.pk-row-act { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.pk-rows--mini .pk-row { padding: 10px; }
@media (max-width: 640px) { .pk-row { grid-template-columns: 38px minmax(0, 1fr); } .pk-row-act { grid-column: 1 / -1; justify-content: flex-start; } }
.pk-pill[data-s="received"] { background: var(--bg-tint); color: var(--ink-2); }
.pk-pill[data-s="making"] { background: var(--tint-blue); color: var(--navy-2); }
.pk-pill[data-s="delivered"], .pk-pill[data-s="changes_requested"] { background: var(--warn-soft); color: var(--warn); }
.pk-pill[data-s="approved"] { background: var(--ok-soft); color: var(--ok); }
.pk-pill[data-s="declined"] { background: var(--err-soft); color: var(--err); }
.pk-soon-box p + p { margin-top: 12px; }

/* ---------- the order form ---------- */
.pk-form-wrap { max-width: 860px; }
.pk-form-wrap > .form-msg { margin-bottom: 14px; }
.pk-packages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pk-pkg strong { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pk-price { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; font-size: 11.25px; }
.pk-price s { color: var(--ink-3); }
.pk-price b { color: var(--ok); }
.pk-pkg:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.pk-soon { margin-top: 14px; }
.pk-soon-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 11.25px; font-weight: 700; color: var(--ink-2); }
.pk-soon-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pk-soon-list li { display: grid; gap: 2px; align-content: start; padding: 12px; border-radius: 12px; border: 1px dashed var(--line-2); background: var(--bg-soft); color: var(--ink-2); font-size: 10.5px; }
.pk-soon-list li b { color: var(--ink); font-size: 11.25px; }
.pk-soon-list li .pk-amount { font-size: 15px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.pk-soon-list li .pk-amount small { font-size: 10px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.pk-soon-list li.pk-soon-wide { grid-column: span 3; }
@media (max-width: 760px) { .pk-packages { grid-template-columns: minmax(0, 1fr); } .pk-soon-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pk-soon-list li.pk-soon-wide { grid-column: span 2; } }
.pk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pk-chip { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); font: inherit; font-size: 10.88px; font-weight: 700; cursor: pointer; }
.pk-chip:hover { border-color: var(--blue); color: var(--navy-2); }
.pk-colours { display: flex; flex-wrap: wrap; gap: 8px; }
.pk-colours:empty { display: none; }
.pk-colour-row { display: inline-flex; align-items: center; gap: 8px; padding: 6px 6px 6px 8px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; }
.pk-colour { width: 40px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer; }
.pk-colour-row code { font-family: var(--mono); font-size: 10.5px; color: var(--ink-2); }
.pk-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .pk-modes { grid-template-columns: minmax(0, 1fr); } }
.pk-drops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.pk-drop { display: grid; gap: 4px; justify-items: start; padding: 14px; border-radius: 14px; border: 1px dashed #AEB9FF; background: #FAFBFF; }
.pk-drop b { font-size: 11.62px; }
.pk-drop small { color: var(--ink-3); font-size: 10.12px; }
.pk-drop .btn { margin-top: 6px; }
@media (max-width: 760px) { .pk-drops { grid-template-columns: minmax(0, 1fr); } }
.pk-pick { position: relative; cursor: pointer; }
.pk-pick:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.pk-files { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.pk-file { display: grid; grid-template-columns: 48px minmax(0, 1fr) 34px; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.pk-file:not(:has(button)) { grid-template-columns: 48px minmax(0, 1fr); }
.pk-thumb { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 10px; overflow: hidden; background: var(--bg-tint); color: var(--navy-2); }
.pk-thumb svg { width: 22px; height: 22px; }
.pk-thumb img, .pk-thumb canvas { width: 100%; height: 100%; object-fit: cover; }
.pk-file-text { min-width: 0; display: grid; }
.pk-file-text b { font-size: 11.25px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-file-text small { color: var(--ink-3); font-size: 9.75px; }
.pk-progress { display: grid; gap: 6px; }
.pk-progress-text { font-size: 10.88px; font-weight: 700; color: var(--navy-2); }
.pk-bar { height: 8px; border-radius: 4px; background: var(--bg-tint); overflow: hidden; }
.pk-bar i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .2s ease; }
.pk-consent a { font-weight: 700; }

/* ---------- one pack ---------- */
.pk-status { display: grid; gap: 12px; margin-bottom: 18px; }
.pk-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pk-del + .pk-del { margin-top: 18px; }
.pk-delivery { margin-bottom: 18px; }
.pk-del-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pk-del-head .btn svg { width: 16px; height: 16px; }
.pk-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 4px; border-radius: 14px; background: var(--bg-tint); margin-bottom: 14px; }
.pk-tab { display: grid; gap: 1px; justify-items: center; align-content: center; min-height: 44px; padding: 8px 6px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); font: inherit; cursor: pointer; text-align: center; }
.pk-tab b { font-size: 11.25px; line-height: 1.2; }
.pk-tab small { font-size: 9.38px; color: var(--ink-2); font-variant-numeric: tabular-nums; }   /* 21 Nov 2026 (axe): ink-3 on the tint was 4.3:1 */
.pk-tab[aria-selected="true"] { background: #fff; color: var(--navy-2); box-shadow: 0 1px 3px rgba(14, 20, 66, .12); }
@media (max-width: 520px) { .pk-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* the carousel: native scroll-snap (swipe on touch), arrows and dots for everyone else */
.pk-car { position: relative; }
.pk-track { --h: min(440px, 58vh); display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 12px; padding: 4px 12px 10px;
  overscroll-behavior-x: contain; scrollbar-width: none; border-radius: 16px; }
.pk-track::-webkit-scrollbar { display: none; }
.pk-track:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.pk-slide { flex: 0 0 auto; width: min(80vw, calc(var(--h) * var(--ratio))); margin: 0; scroll-snap-align: center; display: grid; gap: 8px; }
.pk-frame { position: relative; aspect-ratio: var(--ar); border-radius: 14px; overflow: hidden; background: var(--bg-tint); box-shadow: 0 14px 32px -20px rgba(14, 20, 66, .6);
  transition: transform .25s var(--ease), box-shadow .25s ease; }
.pk-slide:not(.is-now) .pk-frame { transform: scale(.96); }
.pk-frame img { width: 100%; height: 100%; object-fit: cover; }
.pk-missing { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); font-size: 11.25px; }
.pk-slide figcaption { display: flex; gap: 8px; align-items: baseline; font-size: 11.25px; color: var(--ink-2); min-width: 0; }
.pk-slide figcaption span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-dl { position: absolute; right: 10px; top: 10px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .92); color: var(--navy); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .45); cursor: pointer; }
.pk-dl svg { width: 18px; height: 18px; }
.pk-dl:hover { background: #fff; transform: scale(1.06); }
.pk-dl[disabled] { display: none; }
.pk-arrow { position: absolute; top: calc(50% - 32px); z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .95); color: var(--navy); box-shadow: var(--shadow); cursor: pointer; }
.pk-arrow svg { width: 20px; height: 20px; }
.pk-arrow--prev { left: -6px; }
.pk-arrow--next { right: -6px; }
.pk-arrow[disabled] { opacity: 0; pointer-events: none; }
@media (hover: none) and (max-width: 640px) { .pk-arrow { display: none; } }
.pk-car-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.pk-dots { display: flex; gap: 6px; flex-wrap: wrap; }
.pk-dot { width: 40px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.pk-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); transition: width .2s ease, background-color .2s ease; }
.pk-dot[aria-current="true"]::before { width: 20px; border-radius: 4px; background: var(--blue); }
.pk-count { font-size: 10.88px; font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pk-caption { display: grid; gap: 10px; margin-top: 14px; padding: 16px; border-radius: 14px; background: var(--bg-soft); border: 1px solid var(--line); }
.pk-caption-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.pk-caption-head h3 { font-size: 11.25px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); }
.pk-ptabs { display: flex; flex-wrap: wrap; gap: 4px; }
.pk-ptab { display: inline-flex; align-items: center; min-height: 40px; padding: 5px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); font: inherit; font-size: 10.5px; font-weight: 700; cursor: pointer; }
.pk-ptab[aria-pressed="true"] { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.pk-caption-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; color: var(--ink); }
/* the videos */
.pk-vids { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 240px)); gap: 16px; }
.pk-vid { margin: 0; display: grid; gap: 8px; align-content: start; }
.pk-vid-frame { aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: #0C1029; }
.pk-vid-frame video { width: 100%; height: 100%; object-fit: cover; }
.pk-vid figcaption { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; font-size: 11.25px; color: var(--ink-2); }
.pk-vid figcaption small { color: var(--ink-3); }
.pk-vid-cap { font-size: 10.88px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; }
.pk-vid-act { display: flex; flex-wrap: wrap; gap: 6px; }
.pk-vid-act .btn svg { width: 16px; height: 16px; }
@media (max-width: 520px) { .pk-vids { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
/* your files and your brief */
.pk-files-box { margin-bottom: 18px; }
.pk-file-act { margin-top: 12px; }
.pk-brief summary { cursor: pointer; font-weight: 800; font-size: 14.25px; letter-spacing: -0.015em; }
.pk-brief[open] summary { margin-bottom: 12px; }
.pk-brief .fine { margin-top: 10px; }
.pk-swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.pk-swatch { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10.5px; }
.pk-swatch::before { content: ""; width: 16px; height: 16px; border-radius: 5px; background: var(--c); border: 1px solid rgba(0, 0, 0, .12); }
/* even spacing between the rows of the order form (site.css only spaces field after field) */
#pack-form .fieldset > * + * { margin-top: 16px; }
#pack-form .fieldset > legend + * { margin-top: 0; }
#pack-form .fieldset .field { gap: 6px; }
@media (max-width: 600px) { #pack-form .two > .field + .field { margin-top: 0; } }

/* 22 Nov 2026: the FREE, UNLIMITED plan (entitlements/{uid}, set only in Pivotium Admin): every package can be ordered */
.pk-plan-pill { background: var(--ok-soft); color: var(--ok); }
.pk-plan { grid-template-columns: minmax(0, 1fr); }
.pk-more { margin-top: 10px; }
.pk-pkg--wide { grid-column: 1 / -1; }
