/* ==========================================================================
   Parents' Corner — the parents' forum (parents/*.php)
   Loaded after style.css; reuses its colours, fonts, .btn and .field styles.
   ========================================================================== */

body.pc { background: var(--cream-2); min-height: 100vh; display: flex; flex-direction: column; }
body.pc > main { flex: 1 0 auto; }

[hidden] { display: none !important; }

/* ---------- App bar ---------- */
.pc-bar { position: sticky; top: 0; z-index: 40; background: linear-gradient(180deg, var(--maroon) 0%, var(--maroon-800) 100%); color: var(--white);
  box-shadow: 0 6px 18px -12px rgba(44, 7, 16, .8); padding-top: env(safe-area-inset-top); }
.pc-bar-in { max-width: 1120px; margin: 0 auto; padding: 0 var(--pad); min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.pc-brand { display: flex; align-items: center; gap: .7rem; color: var(--white); text-decoration: none; min-width: 0; }
.pc-brand img { width: 38px; height: 38px; object-fit: contain; flex: none; background: #fff; border-radius: 50%; padding: 3px; }
.pc-brand span { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.pc-brand strong { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; white-space: nowrap; }
.pc-brand small { font-size: .72rem; color: var(--gold-300); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-brand:hover { color: var(--white); }
.pc-bar-nav { display: flex; align-items: center; gap: .3rem; }
.pc-bar-link { position: relative; display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .75rem; border-radius: 999px; color: rgba(255, 255, 255, .85); text-decoration: none; font-size: .9rem; font-weight: 500; }
.pc-bar-link .ico { width: 1.15rem; height: 1.15rem; }
.pc-bar-link:hover, .pc-bar-link.is-on { background: rgba(255, 255, 255, .12); color: var(--white); }
.pc-me { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--maroon-900); font-weight: 700; font-size: .75rem; }
.pc-bar-back { display: inline-flex; align-items: center; gap: .4rem; color: rgba(255, 255, 255, .85); font-size: .88rem; text-decoration: none; }
.pc-bar-back:hover { color: var(--white); }
.pc-bar-back .ico { width: 1rem; height: 1rem; }
.pc-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #25a244; color: #fff; font: 700 .7rem/1 var(--sans); }
.pc-bar-link .pc-badge { position: absolute; top: -2px; right: -4px; border: 2px solid var(--maroon); }

.pc-flash { max-width: 760px; margin: 1rem auto 0; padding: .75rem 1rem; border-radius: 12px; font-size: .92rem; width: calc(100% - 2 * var(--pad)); }
.pc-flash-success { background: #e8f5ee; color: #1f6b43; border: 1px solid #bfe3cf; }
.pc-flash-error { background: #fdecea; color: #8c1d18; border: 1px solid #f5c6c2; }
.pc-flash-info { background: #fbf4e6; color: #6d5320; border: 1px solid #ecd9ae; }

.pc-foot { text-align: center; font-size: .8rem; color: var(--muted); padding: 1.5rem var(--pad) calc(1.5rem + env(safe-area-inset-bottom)); }
.pc-foot p { margin: 0; }

/* ---------- Cards & forms ---------- */
.pc-card { background: var(--white); border: 1px solid var(--sand); border-radius: var(--r-lg); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow); }
.pc-card h1, .pc-card h2 { margin-bottom: .6rem; }
.pc-card h2 { font-size: 1.35rem; display: flex; align-items: center; gap: .5rem; }
.pc-card h2 .ico { width: 1.1rem; height: 1.1rem; color: var(--gold-600); }
.pc-card .field { margin-bottom: 1rem; }
.pc-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.pc-hint { font-weight: 400; font-size: .8rem; color: var(--muted); }
.pc-opt { font-weight: 400; font-size: .78rem; color: var(--muted); margin-left: .3rem; }
.pc-check { display: flex; align-items: center; gap: .55rem; margin: 0 0 1rem; font-size: .92rem; cursor: pointer; }
.pc-check input { width: 18px; height: 18px; accent-color: var(--maroon); }
.pc-pw { position: relative; display: block; }
.pc-pw input { width: 100%; padding-right: 2.8rem; }
.pc-pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; padding: 6px; cursor: pointer; color: var(--muted); }
.pc-pw-eye .ico { width: 1.1rem; height: 1.1rem; }
.pc-alert-info { background: #fbf4e6; color: #6d5320; border: 1px solid #ecd9ae; }
.pc-wrap { max-width: 760px; margin: 0 auto; padding: clamp(1.25rem, 4vw, 2.5rem) var(--pad); width: 100%; }
.pc-wrap > h1 { font-size: clamp(1.7rem, 4vw, 2.2rem); }
.pc-acc .pc-card { margin-bottom: 1.25rem; }
.pc-sub { font-family: var(--sans); font-size: .95rem; font-weight: 700; display: flex; align-items: center; gap: .45rem; margin: .5rem 0 .8rem; }
.pc-sub .ico { width: 1rem; height: 1rem; color: var(--gold-600); }
.pc-mygroups { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.pc-mygroups li { padding: .35rem .8rem; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--c); background: color-mix(in srgb, var(--c) 10%, white); border: 1px solid color-mix(in srgb, var(--c) 30%, white); }
.pc-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.pc-btns form { margin: 0; }
.pc-linkbtn { border: 0; background: none; color: var(--maroon); text-decoration: underline; cursor: pointer; padding: 0; font-size: .92rem; }

/* ---------- Sign in / sign up ---------- */
.pc-auth { width: 100%; max-width: 1040px; margin: 0 auto; padding: clamp(1.5rem, 5vw, 4rem) var(--pad); }
.pc-auth-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.pc-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; color: var(--gold-600); margin-bottom: .6rem; }
.pc-auth-intro h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--maroon); }
.pc-auth-intro > p { font-size: 1.05rem; max-width: 46ch; }
.pc-ticks { list-style: none; display: grid; gap: .7rem; margin-top: 1.5rem; }
.pc-ticks li { display: flex; gap: .7rem; align-items: flex-start; }
.pc-ticks .ico { flex: none; width: 1.4rem; height: 1.4rem; padding: 4px; border-radius: 50%; background: var(--gold-100); color: var(--gold-600); }
.pc-auth-card h2 { font-size: 1.6rem; }
.pc-forgot { margin: 1.1rem 0 0; font-size: .9rem; }
.pc-forgot summary { cursor: pointer; color: var(--maroon); font-weight: 600; }
.pc-forgot p { margin: .6rem 0 0; }
.pc-forgot-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.pc-forgot-links a { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; }
.pc-forgot-links .ico { width: 1rem; height: 1rem; }
.pc-switch { text-align: center; margin: 1.2rem 0 0; font-size: .92rem; }
.pc-reg { max-width: 720px; margin: 0 auto; }
.pc-reg h1 { font-size: clamp(1.7rem, 4vw, 2.2rem); color: var(--maroon); }
.pc-lead { color: var(--muted); }
.pc-kids { border: 1px solid var(--sand); border-radius: var(--r); padding: 1rem 1.1rem .4rem; margin: 0 0 1.2rem; background: var(--cream); }
.pc-kids legend { font-weight: 700; color: var(--ink); padding: 0 .4rem; font-size: .92rem; }
.pc-kid { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: .75rem; align-items: end; }
.pc-kid .field { margin-bottom: .8rem; }
.pc-kid-x { margin-bottom: .8rem; width: 40px; height: 44px; border-radius: 10px; border: 1px solid var(--sand); background: var(--white); cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.pc-kid-x .ico { width: 1rem; height: 1rem; }
.pc-addkid { display: inline-flex; align-items: center; gap: .4rem; border: 1px dashed var(--gold); background: var(--white); color: var(--maroon); border-radius: 999px; padding: .45rem .9rem; font-size: .88rem; font-weight: 600; cursor: pointer; margin-bottom: .8rem; }
.pc-addkid .ico { width: .95rem; height: .95rem; }
.pc-done { max-width: 560px; margin: 0 auto; text-align: center; }
.pc-done-ico { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #e8f5ee; color: #1f7a4d; margin-bottom: 1rem; }
.pc-done-ico .ico { width: 30px; height: 30px; }

/* ---------- Feed layout ---------- */
.pc-main { width: 100%; max-width: 1120px; margin: 0 auto; padding: 1.5rem var(--pad) 2rem; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 1.75rem; align-items: start; align-content: start; }
.pc-side { position: sticky; top: 80px; background: var(--white); border: 1px solid var(--sand); border-radius: var(--r-lg); padding: .75rem; box-shadow: var(--shadow); }
.pc-side-h { font-family: var(--sans); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; margin: .35rem .5rem .6rem; }
.pc-chans { list-style: none; display: grid; gap: 2px; }
.pc-chan { display: flex; align-items: center; gap: .7rem; padding: .6rem .55rem; border-radius: 12px; text-decoration: none; color: var(--ink); transition: background .15s; }
.pc-chan:hover { background: var(--cream); color: var(--ink); }
.pc-chan.is-on { background: color-mix(in srgb, var(--maroon) 8%, white); }
.pc-chan-av { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--c, var(--maroon)); color: #fff; font-weight: 700; font-size: .85rem; letter-spacing: .02em; }
.pc-chan-av .ico { width: 1.2rem; height: 1.2rem; }
.pc-chan-all { background: linear-gradient(135deg, var(--gold), var(--gold-600)); }
.pc-chan-t { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.pc-chan-t strong { font-size: .92rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-chan-t small { font-size: .76rem; color: var(--muted); }
.pc-side-note { font-size: .8rem; color: var(--muted); margin: .75rem .5rem .25rem; }

.pc-feedcol { min-width: 0; max-width: 720px; }
.pc-feedhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.pc-feedhead h1 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 0 0 .15rem; }
.pc-feedhead p { margin: 0; color: var(--muted); font-size: .92rem; }
.pc-markall { flex: none; border: 1px solid var(--sand); background: var(--white); border-radius: 999px; padding: .4rem .85rem; font-size: .82rem; font-weight: 600; color: var(--maroon); cursor: pointer; }
.pc-markall:hover { border-color: var(--maroon); }
.pc-back { margin: 0 0 1rem; }
.pc-back a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; }
.pc-back .ico { width: 1rem; height: 1rem; }
.pc-newbar { position: sticky; top: 74px; z-index: 5; display: flex; align-items: center; gap: .4rem; margin: 0 auto 1rem; border: 0; border-radius: 999px; padding: .55rem 1.1rem; background: var(--maroon); color: #fff; font-weight: 600; font-size: .88rem; cursor: pointer; box-shadow: 0 10px 24px -10px rgba(59, 10, 21, .7); animation: pc-drop .35s cubic-bezier(.2, .8, .2, 1.2); }
.pc-newbar .ico { width: 1rem; height: 1rem; }
@keyframes pc-drop { from { transform: translateY(-12px); opacity: 0; } }
.pc-pinned { margin-bottom: 1rem; }
.pc-list, .pc-pinned { display: grid; gap: 1rem; }
.pc-more { display: flex; margin: 1.25rem auto 0; }
.pc-empty { text-align: center; padding: 3rem 1.5rem; background: var(--white); border: 1px dashed var(--sand); border-radius: var(--r-lg); }
.pc-empty > span { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--gold-100); color: var(--gold-600); margin-bottom: .8rem; }
.pc-empty .ico { width: 26px; height: 26px; }
.pc-empty h2 { font-size: 1.35rem; }
.pc-empty p { color: var(--muted); max-width: 40ch; margin: 0 auto; }

/* ---------- Update card ---------- */
.fp { position: relative; background: var(--white); border: 1px solid var(--sand); border-radius: var(--r-lg); padding: 1.1rem 1.25rem .9rem; box-shadow: 0 1px 2px rgba(59, 10, 21, .04); scroll-margin-top: 90px; }
.fp.is-unread { border-color: color-mix(in srgb, var(--gold) 55%, white); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 14%, transparent); }
.fp.is-pinned { background: linear-gradient(180deg, #fffaf0, var(--white) 120px); }
.fp.is-target { animation: pc-flash 2s ease-out; }
@keyframes pc-flash { 0%, 30% { box-shadow: 0 0 0 4px var(--gold-300); } }
.fp-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .6rem; }
.fp-av { width: 40px; height: 40px; border-radius: 50%; object-fit: contain; background: var(--cream); padding: 3px; border: 1px solid var(--sand); flex: none; }
.fp-who { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; flex: 1; }
.fp-who strong { color: var(--ink); font-size: .95rem; }
.fp-who small { color: var(--muted); font-size: .78rem; }
.fp-flag { flex: none; display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .02em; }
.fp-flag .ico { width: .85rem; height: .85rem; }
.fp-new { background: #25a244; color: #fff; }
.fp-pinned { background: var(--gold-100); color: var(--gold-600); }
.fp-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 .6rem; }
.fp-tags a { padding: .12rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 600; text-decoration: none; color: var(--c); background: color-mix(in srgb, var(--c) 9%, white); border: 1px solid color-mix(in srgb, var(--c) 25%, white); }
.fp-title { font-size: 1.3rem; margin: 0 0 .4rem; }
.fp-title a { color: inherit; text-decoration: none; }
.fp-title a:hover { color: var(--maroon); }
.fp-body { font-size: 1rem; line-height: 1.65; color: var(--text); max-width: none; overflow-wrap: anywhere; }
.fp-body > :last-child { margin-bottom: 0; }
.fp-body img { border-radius: 10px; }
.fp-media { display: grid; gap: 4px; margin: .9rem 0 0; border-radius: 14px; overflow: hidden; }
.fp-media.n2 { grid-template-columns: 1fr 1fr; }
.fp-media.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.fp-media.n3 a:first-child { grid-row: span 2; }
.fp-media.n4 { grid-template-columns: 1fr 1fr; }
.fp-media a { position: relative; display: block; background: var(--cream-2); aspect-ratio: 4 / 3; overflow: hidden; }
.fp-media.n1 a { aspect-ratio: auto; max-height: 520px; }
.fp-media.n3 a:first-child { aspect-ratio: auto; }
.fp-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.fp-media.n1 img { height: auto; max-height: 520px; object-fit: contain; margin: 0 auto; }
.fp-media a:hover img { transform: scale(1.03); }
.fp-media a[data-more]::after { content: attr(data-more); position: absolute; inset: 0; display: grid; place-items: center; background: rgba(44, 7, 16, .55); color: #fff; font-size: 1.6rem; font-weight: 700; }
.fp-files { list-style: none; display: grid; gap: .5rem; margin: .9rem 0 0; }
.fp-files li { display: flex; align-items: center; border: 1px solid var(--sand); border-radius: 12px; background: var(--cream); overflow: hidden; }
.fp-files li > a:first-child { display: flex; align-items: center; gap: .75rem; flex: 1; min-width: 0; padding: .6rem .75rem; text-decoration: none; color: var(--ink); }
.fp-ext { display: grid; place-items: center; width: 42px; height: 46px; flex: none; border-radius: 8px; background: var(--maroon); color: #fff; font-size: .66rem; font-weight: 700; letter-spacing: .04em; }
.fp-ext-pdf { background: #c62828; }
.fp-ext-doc, .fp-ext-docx { background: #1e5bb8; }
.fp-ext-xls, .fp-ext-xlsx { background: #1f7a4d; }
.fp-ext-ppt, .fp-ext-pptx { background: #c4511f; }
.fp-fname { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.fp-fname strong { font-size: .9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-fname small { color: var(--muted); font-size: .76rem; }
.fp-dl { display: grid; place-items: center; width: 48px; align-self: stretch; border-left: 1px solid var(--sand); color: var(--maroon); }
.fp-dl:hover { background: var(--white); }
.fp-dl .ico { width: 1.1rem; height: 1.1rem; }

/* ---------- Reactions (WhatsApp-style) ---------- */
.fp-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .9rem; padding-top: .7rem; border-top: 1px solid var(--cream-2); flex-wrap: wrap; }
.fr { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; min-height: 32px; }
.fr-chip { display: inline-flex; align-items: center; gap: .3rem; height: 32px; padding: 0 .65rem 0 .5rem; border-radius: 999px; border: 1px solid var(--sand); background: var(--cream); cursor: pointer; font-size: .85rem; color: var(--ink); transition: transform .15s, border-color .15s, background .15s; }
.fr-chip:hover { border-color: var(--gold); }
.fr-chip:active { transform: scale(.94); }
.fr-chip.is-mine { border-color: var(--maroon); background: color-mix(in srgb, var(--maroon) 8%, white); color: var(--maroon); font-weight: 700; }
.fr-e { font-size: 1.1rem; line-height: 1; }
.fr-who { border: 0; background: none; color: var(--muted); font-size: .8rem; cursor: pointer; padding: .3rem .4rem; text-decoration: underline; text-decoration-color: var(--sand); text-underline-offset: 3px; }
.fr-who:hover { color: var(--maroon); }
.fr-pick { position: relative; margin-left: auto; }
.fr-add { display: inline-flex; align-items: center; gap: .4rem; height: 34px; padding: 0 .85rem 0 .6rem; border-radius: 999px; border: 1px solid var(--sand); background: var(--white); color: var(--text); font-size: .85rem; font-weight: 600; cursor: pointer; }
.fr-add .ico { width: 1.15rem; height: 1.15rem; color: var(--gold-600); }
.fr-add:hover, .fr-add[aria-expanded="true"] { border-color: var(--gold); background: var(--cream); }
.fr-mine { font-size: 1.15rem; line-height: 1; }
.fr-tray { position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 20; display: flex; gap: 2px; padding: 6px; border-radius: 999px; background: var(--white); border: 1px solid var(--sand); box-shadow: 0 14px 32px -12px rgba(44, 7, 16, .45); transform-origin: 85% 100%; animation: fr-pop .22s cubic-bezier(.2, .9, .3, 1.3); }
.fr-tray[hidden] { display: none; }
.fr-tray button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; font-size: 1.6rem; line-height: 1; cursor: pointer; transition: transform .15s; display: grid; place-items: center; }
.fr-tray button:hover, .fr-tray button:focus-visible { transform: scale(1.3) translateY(-4px); }
.fr-tray button.is-mine { background: color-mix(in srgb, var(--maroon) 10%, white); }
.fr-tray button:nth-child(1) { animation: fr-in .3s .02s both; } .fr-tray button:nth-child(2) { animation: fr-in .3s .05s both; }
.fr-tray button:nth-child(3) { animation: fr-in .3s .08s both; } .fr-tray button:nth-child(4) { animation: fr-in .3s .11s both; }
.fr-tray button:nth-child(5) { animation: fr-in .3s .14s both; } .fr-tray button:nth-child(6) { animation: fr-in .3s .17s both; }
.fr-tray button:nth-child(n+7) { animation: fr-in .3s .2s both; }
@keyframes fr-pop { from { transform: scale(.6); opacity: 0; } }
@keyframes fr-in { from { transform: scale(.3) translateY(8px); opacity: 0; } }
.fr-burst { position: fixed; z-index: 100; pointer-events: none; font-size: 1.9rem; animation: fr-float .9s ease-out forwards; }
@keyframes fr-float { 0% { transform: translate(-50%, -50%) scale(.6); opacity: 0; } 20% { opacity: 1; transform: translate(-50%, -80%) scale(1.3); } 100% { transform: translate(-50%, -220%) scale(1); opacity: 0; } }

/* Who reacted — bottom sheet */
.pc-sheet { width: min(440px, 100%); max-height: min(70vh, 560px); padding: 0; border: 0; border-radius: 20px; box-shadow: var(--shadow-lg); }
.pc-sheet::backdrop { background: rgba(31, 27, 45, .45); }
.pc-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.1rem .5rem; }
.pc-sheet-head h2 { font-size: 1.2rem; margin: 0; }
.pc-x { border: 0; background: var(--cream); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.pc-x .ico { width: 1rem; height: 1rem; }
.pc-sheet-tabs { display: flex; gap: .3rem; padding: 0 1.1rem .6rem; border-bottom: 1px solid var(--cream-2); overflow-x: auto; }
.pc-sheet-tabs button { flex: none; border: 0; background: none; padding: .45rem .7rem; border-radius: 999px; font-size: .9rem; cursor: pointer; color: var(--text); }
.pc-sheet-tabs button.is-on { background: color-mix(in srgb, var(--maroon) 9%, white); color: var(--maroon); font-weight: 700; }
.pc-sheet-list { list-style: none; padding: .4rem .6rem 1rem; overflow-y: auto; max-height: calc(min(70vh, 560px) - 110px); }
.pc-sheet-list li { display: flex; align-items: center; gap: .7rem; padding: .55rem .5rem; border-radius: 10px; }
.pc-sheet-list li + li { border-top: 1px solid var(--cream-2); }
.pc-sheet-av { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--cream-2); color: var(--maroon); font-weight: 700; font-size: .78rem; flex: none; }
.pc-sheet-list .n { flex: 1; color: var(--ink); font-weight: 500; }
.pc-sheet-list .e { font-size: 1.3rem; }

/* Photo viewer */
.pc-lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(15, 8, 12, .94); display: grid; place-items: center; padding: 3.5rem 1rem; }
.pc-lightbox[hidden] { display: none; }
.pc-lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.pc-lightbox img { max-width: min(1100px, 100%); max-height: calc(100vh - 9rem); object-fit: contain; border-radius: 6px; }
.pc-lightbox figcaption { color: rgba(255, 255, 255, .75); font-size: .85rem; }
.pc-lightbox .pc-x { position: absolute; top: 1rem; right: 1rem; background: rgba(255, 255, 255, .14); color: #fff; }
.pc-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; display: grid; place-items: center; }
.pc-lb-nav .ico { width: 1.3rem; height: 1.3rem; }
.pc-lb-nav.prev { left: 1rem; } .pc-lb-nav.next { right: 1rem; }
.pc-lb-dl { position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: .4rem; color: #fff; background: rgba(255, 255, 255, .14); padding: .5rem 1rem; border-radius: 999px; text-decoration: none; font-size: .88rem; }
.pc-lb-dl:hover { color: #fff; background: rgba(255, 255, 255, .25); }
.pc-lb-dl .ico { width: 1rem; height: 1rem; }

/* ---------- Small screens ---------- */
@media (max-width: 880px) {
  .pc-main { grid-template-columns: minmax(0, 1fr); gap: .9rem; padding-top: 0; }
  .pc-main > * { min-width: 0; }
  .pc-side { position: sticky; top: 62px; z-index: 6; margin: 0 calc(-1 * var(--pad)); padding: .6rem var(--pad); border-radius: 0; border: 0; border-bottom: 1px solid var(--sand); box-shadow: none; background: var(--cream-2); }
  .pc-side-h, .pc-side-note { display: none; }
  .pc-chans { display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
  .pc-chans::-webkit-scrollbar { display: none; }
  .pc-chans li { flex: none; scroll-snap-align: start; }
  .pc-chan { gap: .45rem; padding: .3rem .75rem .3rem .3rem; border-radius: 999px; background: var(--white); border: 1px solid var(--sand); }
  .pc-chan.is-on { background: var(--maroon); border-color: var(--maroon); }
  .pc-chan.is-on .pc-chan-t strong { color: #fff; }
  .pc-chan-av { width: 28px; height: 28px; font-size: .66rem; }
  .pc-chan-av .ico { width: .95rem; height: .95rem; }
  .pc-chan-t small { display: none; }
  .pc-chan-t strong { font-size: .84rem; }
  .pc-chan .pc-badge { min-width: 18px; height: 18px; font-size: .64rem; }
  .pc-feedcol { max-width: none; }
  .pc-newbar { top: 122px; }
  .pc-auth-grid { grid-template-columns: 1fr; }
  .pc-auth-intro { text-align: center; }
  .pc-auth-intro > p { margin-inline: auto; }
  .pc-ticks { display: none; }
}
@media (max-width: 560px) {
  .pc-hide-sm, .pc-bar-link span:not(.pc-me):not(.pc-badge) { display: none; }
  .pc-brand strong { font-size: 1rem; }
  .pc-grid2, .pc-kid { grid-template-columns: 1fr; gap: 0; }
  .pc-kid { position: relative; padding-right: 0; border-bottom: 1px dashed var(--sand); margin-bottom: .6rem; }
  .pc-kid-x { position: absolute; top: 0; right: 0; width: 32px; height: 32px; margin: 0; }
  .fp { padding: 1rem 1rem .8rem; border-radius: 16px; }
  .fr-tray { right: -6px; }
  .fr-tray button { width: 40px; height: 40px; font-size: 1.45rem; }
  .fr-add-t { display: none; }
  .fr-add { padding: 0 .6rem; }
  .pc-feedhead { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .fr-tray, .fr-tray button, .fr-burst, .pc-newbar, .fp.is-target { animation: none !important; }
}

/* Children on My account */
.pc-kidlist { list-style: none; display: grid; gap: .5rem; margin: 0 0 1rem; }
.pc-kidlist li { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border: 1px solid var(--sand); border-radius: 12px; background: var(--cream); }
.pc-kidlist li > span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.pc-kidlist small { color: var(--muted); font-size: .8rem; }
.pc-kid-av { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--gold-100); color: var(--gold-600); font-weight: 700; font-size: .78rem; flex: none; }
