/* Posty's page: the page is a month. Tokens come from styles.css; Posty's own category colours
   (blue, yellow, pink, green) appear only as small swatches. Every class starts with po-. */

:root { --po-d: clamp(28px, 2.4vw, 36px); }
.po-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ================= hero: November 2026 ================= */
.po-hero { padding: clamp(20px, 3vh, 40px) var(--m) 0; }
.po-month {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px;
  font-variant-numeric: lining-nums tabular-nums;
}
.po-head { grid-row: 1; grid-column: 1 / span 6; padding: clamp(8px, 2vh, 24px) clamp(24px, 4vw, 64px) clamp(32px, 4vh, 48px) 0; }
.po-name { display: flex; align-items: center; gap: clamp(16px, 1.6vw, 28px); }
.po-logo { width: clamp(56px, 5.4vw, 88px); height: auto; flex: none; }
.po-name h1 { font-size: var(--step-poster); letter-spacing: -0.035em; line-height: .9; }
.po-sub { margin-top: 28px; font-size: var(--step-lead); line-height: 1.45; max-width: 27em; }
.po-ask p, .po-ask-static { margin-top: 24px; font-size: var(--step-lead); line-height: 1.9; max-width: 40em; }
.po-ask-static { line-height: 1.45; }
.js .po-ask-static { display: none; }
html:not(.js) .po-ask { display: none; }
.po-sel { display: inline-block; }
.po-sel select {
  appearance: none; -webkit-appearance: none; border: 0; border-radius: 0; cursor: pointer;
  font: 700 1em/1.2 var(--f); color: var(--ink); background-color: var(--surface-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2310302a' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 12px 8px;
  min-height: 44px; padding: 4px 36px 4px 12px; max-width: 100%;
  transition: background-color var(--t) var(--ease), transform 160ms var(--ease);
}
.po-sel select:hover { background-color: #b5ddcd; }
.po-sel select:active { transform: scale(.97); }
.po-actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }

.po-mname { grid-row: 1; grid-column: 7; align-self: start; padding: clamp(8px, 2vh, 24px) 0 0 12px; font: 400 var(--po-d)/1 var(--fd); letter-spacing: -0.02em; }
.po-wd { display: none; }

/* a day */
.po-day {
  grid-row: var(--r); grid-column: var(--c);
  position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 6px;
  min-height: clamp(118px, 9vw, 150px); padding: 12px 12px 14px; margin: 0;
  background: var(--surface); color: var(--ink); border: 0; border-radius: 0;
  font: inherit; text-align: left;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease), transform 160ms var(--ease);
}
.po-day[data-d="1"] { align-self: end; }
button.po-day { cursor: pointer; }
.po-num { font: 400 26px/1 var(--fd); letter-spacing: -0.02em; }
.po-wdn { font: 500 14px/1 var(--f); letter-spacing: 0; color: var(--muted); margin-right: 2px; }
.po-fest { font-size: 14px; line-height: 1.25; font-weight: 700; color: var(--accent-text); }
.po-day.is-fest { background: var(--surface-2); }
.po-post { margin-top: auto; display: grid; gap: 5px; }
.po-pt { font-size: 14px; line-height: 1.3; font-weight: 500; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.po-pm { display: flex; align-items: center; gap: 7px; font-size: 14px; line-height: 1.2; color: var(--muted); }
.po-pm::before, .po-sw, .po-dot { content: ""; display: inline-block; flex: none; width: 10px; height: 10px; background: var(--pc); }
.po-dot { display: none; }
@media (hover: hover) and (pointer: fine) {
  button.po-day:hover { background: var(--surface-2); }
  button.po-day.is-fest:hover { background: #b5ddcd; }
}
button.po-day:active { transform: scale(.97); }
.po-day[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.po-day[aria-pressed="true"] .po-pm, .po-day[aria-pressed="true"] .po-wdn { color: #b9d4cb; }
.po-day[aria-pressed="true"] .po-fest { color: #8fe3c6; }

/* the last row: the month's tally and the open day */
.po-foot {
  grid-row: 6; grid-column: 2 / -1;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "tally detail" "note detail"; gap: 6px;
}
.po-tally { grid-area: tally; padding: 24px 24px 0 18px; }
.po-note { grid-area: note; align-self: end; padding: 0 24px 4px 18px; font-size: 14px; line-height: 1.5; color: var(--muted); max-width: 34em; }
.po-count { font: 400 var(--po-d)/1.05 var(--fd); letter-spacing: -0.02em; max-width: 14em; }
.po-count b { font-weight: 400; }
.po-mix { display: flex; gap: 3px; height: 14px; margin: 22px 0 14px; }
.po-mix i { display: block; background: var(--pc); min-width: 6px; transform-origin: left; }
.po-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 16px; }
.po-legend li { display: inline-flex; align-items: center; gap: 8px; }
.po-detail { grid-area: detail; background: var(--surface); padding: clamp(22px, 2.2vw, 32px); display: grid; gap: 10px; align-content: start; }
.po-when { font-size: 14px; color: var(--muted); }
.po-dt { font: 400 var(--po-d)/1.02 var(--fd); letter-spacing: -0.025em; text-wrap: balance; } /* a sample post title, set like a heading */
.po-dm { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.po-cap { margin-top: 6px; font-size: 16px; line-height: 1.55; max-width: 38em; }
.po-fold { color: var(--accent-text); font-weight: 700; margin: 0 .25em; }
.po-below { color: var(--muted); }
.po-foldnote { font-size: 14px; color: var(--muted); }
.po-tags { font-size: 14px; color: var(--accent-text); font-weight: 500; word-spacing: .2em; }
.po-steps { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; font-size: 16px; }
.po-steps li { position: relative; padding-left: 20px; }
.po-steps li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; background: var(--accent); }
.po-agenda { display: none; }

/* the month arrives: its posts appear day by day (posty.js adds .po-filling) */
@media (prefers-reduced-motion: no-preference) {
  .po-filling .po-post, .po-filling .po-dot, .po-filling .po-fest { animation: po-pop 520ms var(--ease-out) backwards; animation-delay: var(--k, 0ms); }
  .po-filling .po-mix i { animation: po-grow 700ms var(--ease-out) backwards; animation-delay: var(--k, 0ms); }
  .po-swap { animation: po-pop 420ms var(--ease-out) backwards; }
}
@keyframes po-pop { from { opacity: 0; transform: translateY(10px); } }
@keyframes po-grow { from { opacity: 0; transform: scaleX(0); } }

/* compact month: day numbers and dots, the posts as a list below */
@media (max-width: 1023px) {
  .po-month { gap: 4px; }
  .po-head { grid-column: 1 / -1; padding: 8px 0 32px; }
  .po-mname { grid-row: 2; grid-column: 1 / -1; padding: 0 0 10px; }
  .po-wd { display: block; grid-row: 3; grid-column: var(--c); font-size: 14px; color: var(--muted); text-align: center; padding-bottom: 4px; }
  .po-day { grid-row: var(--rm); min-height: 54px; padding: 8px 4px; align-items: center; justify-content: flex-start; gap: 6px; }
  .po-day[data-d="1"] { align-self: stretch; }
  .po-num { font-size: 20px; }
  .po-wdn, .po-fest, .po-post { display: none; }
  .po-dot { display: block; }
  .po-day.is-fest .po-num { color: var(--accent-text); font-weight: 700; }
  .po-day[aria-pressed="true"].is-fest .po-num { color: #8fe3c6; }
  .po-foot { grid-row: 10; grid-column: 1 / -1; grid-template-columns: 1fr; grid-template-areas: "tally" "note"; margin-top: 24px; }
  .po-tally, .po-note { padding: 0; }
  .po-note { margin-top: 16px; }
  .po-foot .po-detail { display: none; }
  html:not(.js) .po-foot .po-detail { display: grid; margin-top: 16px; }

  .po-agenda { display: grid; gap: 4px; list-style: none; margin: 28px 0 0; padding: 0; }
  .po-agenda button {
    width: 100%; min-height: 56px; display: grid; grid-template-columns: 4.2em minmax(0, 1fr) auto; align-items: center; gap: 12px;
    padding: 10px 14px; border: 0; border-radius: 0; background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; text-align: left; cursor: pointer;
    transition: background-color var(--t) var(--ease), color var(--t) var(--ease), transform 160ms var(--ease);
  }
  .po-agenda button:active { transform: scale(.98); }
  .po-agenda button b { font-weight: 700; }
  .po-am { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
  .po-agenda button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
  .po-agenda button[aria-pressed="true"] .po-am { color: #b9d4cb; }
  .po-agenda .po-detail { margin-top: 4px; }
}
@media (max-width: 560px) {
  .po-day { min-height: 50px; padding: 7px 2px; gap: 5px; }
  .po-num { font-size: 18px; }
  .po-dot { width: 8px; height: 8px; }
  .po-ask p { line-height: 2; }
  .po-agenda button { grid-template-columns: 3.6em minmax(0, 1fr); }
  .po-am { grid-column: 2; }
}

/* ================= captions on eight platforms ================= */
.po-feeds { padding: var(--gap) var(--m) 0; }
.po-feeds-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 96px); align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.po-feeds-head .section-title { margin-bottom: 0; max-width: 9em; }
.po-feeds-head p { font-size: var(--step-body); line-height: 1.6; max-width: 36em; }
.po-table { width: 100%; border-collapse: collapse; }
.po-table th, .po-table td { text-align: left; vertical-align: baseline; padding: 22px 24px 22px 0; border-bottom: 1px solid var(--surface-2); }
.po-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.po-table tbody tr:first-child > * { border-top: 1px solid var(--surface-2); }
.po-table tbody th { font: 400 26px/1.05 var(--fd); letter-spacing: -0.02em; white-space: nowrap; width: 16%; }
.po-lim { width: 18%; }
.po-lim b { font-weight: 700; }
.po-seen { width: 50%; }
.po-seen span { display: block; font-size: 19px; line-height: 1.5; max-width: 36em; }
.po-seen em { display: block; margin-top: 6px; font-style: normal; font-size: 14px; color: var(--accent-text); font-weight: 500; }
.po-ht { white-space: nowrap; padding-right: 0; }
@media (hover: hover) and (pointer: fine) {
  .po-table tbody tr { transition: background-color var(--t) var(--ease); }
  .po-table tbody tr:hover { background: var(--surface); }
}

/* ================= a reel, timed ================= */
.po-reel { padding: var(--gap) var(--m) 0; }
.po-reel .section-title { margin-bottom: 28px; }
.po-reel-lead { font-size: var(--step-lead); line-height: 1.45; max-width: 32em; margin-bottom: clamp(40px, 5vw, 64px); }
.po-beats { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 4px; }
.po-beat { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: clamp(120px, 11vw, 168px); padding: 14px 12px; background: var(--surface); transform-origin: left; }
.po-beat:nth-child(even) { background: var(--surface-2); }
.po-beat.is-hook { background: var(--ink); color: var(--bg); }
.po-beat.is-cta { background: var(--accent); color: var(--accent-ink); }
.po-bt { font-size: 14px; }
.po-beat b { font: 400 26px/1.05 var(--fd); letter-spacing: -0.01em; }
.po-shots-wrap { margin-top: 6px; }
.po-shots { width: 100%; border-collapse: separate; border-spacing: 0 4px; }
.po-shots thead th { text-align: left; font-size: 14px; font-weight: 500; color: var(--muted); padding: 18px 20px 6px 0; }
.po-shots tbody td, .po-shots tbody th { text-align: left; vertical-align: top; padding: 16px 20px 16px 0; font-size: 16px; line-height: 1.5; background: var(--surface); }
.po-shots tbody tr > :first-child { padding-left: 18px; }
.po-shots tbody th { font-weight: 700; white-space: nowrap; }
.po-st { white-space: nowrap; color: var(--accent-text); font-weight: 500; }
.po-reel-cols { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 96px); margin-top: clamp(56px, 6vw, 96px); }
.po-reel-cols h3 { font-size: var(--po-d); margin-bottom: 24px; }
.po-hooks { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.po-hooks li { display: flex; flex-direction: column; gap: 4px; }
.po-hooks span { font-size: 14px; color: var(--muted); order: 2; }
.po-hooks q { quotes: "“" "”"; font: 400 26px/1.15 var(--fd); letter-spacing: -0.015em; }
.po-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 16px; line-height: 1.5; }
.po-check li { position: relative; padding-left: 26px; }
.po-check li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; background: var(--accent); }
.po-ways { margin-top: 28px; padding: 20px 22px; background: var(--surface); font-size: 16px; line-height: 1.55; }

/* ================= image prompts ================= */
.po-prompts { padding: var(--gap) var(--m) 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.po-prompts .section-title { margin-bottom: 28px; max-width: 8em; }
.po-prompts-side > p { font-size: var(--step-body); line-height: 1.6; max-width: 32em; }
.po-moods { margin-top: 18px; }
.po-moods span { font-weight: 700; }
.po-sample { margin: 32px 0 0; padding: 24px; background: var(--surface); }
.po-sample blockquote { margin: 0; font-size: 19px; line-height: 1.5; }
.po-sample figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }
.po-wall { font: 400 clamp(36px, 3.2vw, 46px)/1.25 var(--fd); letter-spacing: -0.02em; text-wrap: pretty; }
.po-style { display: block; }
.po-style b { font-weight: 400; }
.po-style > span { font: 400 19px/1.4 var(--f); letter-spacing: 0; color: var(--muted); }
.po-style { margin-right: .7em; }

/* ================= after posting: a dark field ================= */
.po-after { margin-top: var(--gap); background: var(--ink); color: var(--bg); }
.po-after-in { padding: clamp(80px, 9vw, 150px) var(--m); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); }
.po-after .section-title { max-width: 6em; margin-bottom: 0; }
.po-after-list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 4vw, 64px) clamp(32px, 4vw, 64px); }
.po-after-list dt { display: flex; align-items: center; gap: 14px; font: 400 var(--po-d)/1 var(--fd); letter-spacing: -0.02em; }
.po-after-list dt::before { content: ""; width: 14px; height: 14px; flex: none; background: var(--pc); }
.po-after-list div:nth-child(1) { --pc: #3A86FF; }
.po-after-list div:nth-child(2) { --pc: #FFB703; }
.po-after-list div:nth-child(3) { --pc: #FF4D8D; }
.po-after-list div:nth-child(4) { --pc: #06D6A0; }
.po-after-list dd { margin: 16px 0 0; font-size: 16px; line-height: 1.6; color: #dceee7; max-width: 30em; }
.po-cal { grid-column: 2; font: 400 26px/1.3 var(--fd); color: var(--bg); max-width: 24em; }

/* ================= exports and privacy ================= */
.po-keep { padding: var(--gap) var(--m) 0; }
.po-keep .section-title { max-width: 10em; }
.po-keep-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.po-exports { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 36px clamp(24px, 3vw, 48px); }
.po-exports li { display: grid; gap: 8px; align-content: start; }
.po-exports b { font: 400 26px/1.05 var(--fd); letter-spacing: -0.02em; }
.po-exports span { font-size: 16px; line-height: 1.5; }
.po-own-lead { font: 400 var(--po-d)/1.2 var(--fd); letter-spacing: -0.015em; max-width: 16em; }
.po-own ul { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; font-size: 16px; line-height: 1.55; }
.po-own li { position: relative; padding-left: 26px; }
.po-own li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; background: var(--accent); }
.po-own .btn { margin-top: 36px; }

/* ================= entrances (posty.js adds .po-rv, then .po-in) ================= */
@media (prefers-reduced-motion: no-preference) {
  .js .po-rv:not(.po-in) { opacity: 0; transform: translateY(22px); }
  .js .po-rv.po-in { transition: opacity 700ms var(--ease-out) var(--pd, 0ms), transform 800ms var(--ease-out) var(--pd, 0ms); }
  .js .po-beat.po-rv:not(.po-in) { opacity: 0; transform: scaleX(.2); }
}

/* ================= tablet and phone ================= */
@media (max-width: 1023px) {
  .po-feeds-head, .po-prompts, .po-after-in, .po-keep-grid, .po-reel-cols { grid-template-columns: 1fr; }
  .po-cal { grid-column: auto; }
  .po-beat { padding: 10px 6px; }
  .po-beat b { font-size: 18px; }
}
@media (max-width: 900px) {
  /* the platform table reads as a list */
  .po-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .po-table, .po-table tbody, .po-table tr, .po-table th, .po-table td { display: block; width: auto; }
  .po-table tr { padding: 22px 0; border-bottom: 1px solid var(--surface-2); display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; }
  .po-table th, .po-table td { padding: 0; border: 0; }
  .po-table tbody th { grid-column: 1; font-size: 21px; }
  .po-lim { grid-column: 2; grid-row: 1; align-self: center; text-align: right; font-size: 14px; }
  .po-seen { grid-column: 1 / -1; }
  .po-seen span { font-size: 16px; }
  .po-ht { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }

  /* the reel: the bar keeps its time, the words go to the table */
  .po-beats { gap: 3px; }
  .po-beat { min-height: 48px; padding: 0; }
  .po-beat > * { display: none; }
  .po-shots thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .po-shots, .po-shots tbody, .po-shots tr { display: block; }
  .po-shots tr { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; padding: 16px; margin-top: 4px; background: var(--surface); }
  .po-shots tbody td, .po-shots tbody th { padding: 0 !important; background: none; }
  .po-shots td:nth-child(3), .po-shots td:nth-child(4) { grid-column: 1 / -1; }
  .po-shots td:nth-child(4) { color: var(--muted); font-size: 14px; }

  .po-after-list { grid-template-columns: 1fr; }
  .po-exports { grid-template-columns: 1fr; }
  .po-exports { gap: 24px; }
  .po-wall { font-size: 21px; line-height: 1.35; }
  .po-style > span { font-size: 16px; }
  .po-cal, .po-own-lead { font-size: 22px; }
  .po-reel-cols { margin-top: 88px; gap: 88px; }
}
