/* Pieceling artists portal. Uses the site's tokens and fonts from site.css;
   everything here is the portal's own layout. Hairlines at 10%, outlines at 30%,
   brass only on plaques and "live" pills, no heavy fills. */

.portal { font-family: var(--sans); font-size: 16px; line-height: 1.5; }
.portal h1, .portal h2, .portal h3 { font-family: var(--serif); font-weight: 500; margin: 0; letter-spacing: -0.01em; }
.portal h1 { font-size: 34px; line-height: 1.15; }
.portal h2 { font-size: 24px; line-height: 1.2; }
.portal h3 { font-size: 18px; }
.portal .muted { opacity: 1; color: rgba(28,28,30,0.62); }
.portal .small { font-size: 13px; line-height: 1.5; }
.portal a { color: inherit; }
.portal [hidden] { display: none !important; }

.p-header { border-bottom: 1px solid var(--hairline); }
.p-header .in { max-width: 1080px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.p-wordmark { font-family: var(--serif); font-size: 22px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; text-decoration: none; }
.p-wordmark .mono { width: 26px; height: 26px; border: 1.5px solid var(--text); border-radius: 7px; display: inline-grid; place-items: center; font-size: 14px; }
.p-logo { font-size: 34px; }
.p-nav { display: flex; gap: 22px; font-size: 14px; flex-wrap: wrap; }
.p-nav a { text-decoration: none; color: rgba(28,28,30,0.62); }
.p-nav a[aria-current] { color: var(--text); }
.p-who { font-size: 13px; color: rgba(28,28,30,0.62); }

.p-wrap { max-width: 1080px; margin: 0 auto; padding: 40px 24px 80px; }
.p-narrow { max-width: 520px; margin: 0 auto; padding: 72px 24px; }

.p-field { display: block; margin: 18px 0; }
.p-field > span { display: block; font-size: 13px; color: rgba(28,28,30,0.62); margin-bottom: 6px; }
.p-input { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; background: transparent; border: 1px solid var(--outline); border-radius: 10px; color: var(--text); }
.p-input:focus { border-color: var(--text); outline: none; }
.p-input.code { letter-spacing: 0.35em; font-size: 22px; font-family: ui-monospace, Menlo, monospace; }
.p-btn { font: inherit; font-size: 15px; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--button-fill); background: var(--button-fill); color: var(--button-text); cursor: pointer; }
.p-btn.ghost { background: transparent; color: var(--text); border-color: var(--outline); }
.portal a.p-btn { color: var(--button-text); text-decoration: none; display: inline-block; }
.portal a.p-btn.ghost { color: var(--text); }
.p-btn.sm { font-size: 13px; padding: 7px 14px; }
.p-btn[disabled] { opacity: 0.45; cursor: default; }
.p-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.p-row.spread { justify-content: space-between; }
.p-row.end { align-items: flex-end; }

.p-card { border: 1px solid var(--hairline); border-radius: 14px; padding: 20px 22px; background: rgba(255,255,255,0.18); }
.p-grid { display: grid; gap: 16px; }
.p-g2 { grid-template-columns: 1fr 1fr; }
.p-g3 { grid-template-columns: repeat(3, 1fr); }
.p-g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .p-g2, .p-g3, .p-g4 { grid-template-columns: 1fr; } }
.p-stat { font-family: var(--serif); font-size: 34px; line-height: 1.1; margin: 2px 0 4px; }
.p-stat small { font-family: var(--sans); font-size: 13px; color: rgba(28,28,30,0.62); display: block; margin-top: 4px; }

.p-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.p-table th { text-align: left; font-weight: 500; color: rgba(28,28,30,0.62); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; padding: 8px 0; border-bottom: 1px solid var(--hairline); }
.p-table td { padding: 11px 0; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.p-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.p-table .serif { font-family: var(--serif); }
.p-pill { display: inline-block; font-size: 12px; padding: 2px 10px; border: 1px solid var(--outline); border-radius: 999px; color: rgba(28,28,30,0.62); white-space: nowrap; }
.p-pill.ok { border-color: #3E6B4A; color: #3E6B4A; }
.p-pill.warn { border-color: #8A5A1E; color: #8A5A1E; }
.p-pill.live { background: var(--brass); border: 0; color: #2A1F0D; }
.p-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; letter-spacing: 0.08em; border: 1px solid var(--outline); border-radius: 8px; padding: 6px 12px; }

.p-tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--hairline); margin: 28px 0 20px; font-size: 14px; }
.p-tabs button { font: inherit; background: none; border: 0; padding: 8px 0; color: rgba(28,28,30,0.62); cursor: pointer; border-bottom: 2px solid transparent; }
.p-tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--text); }

.p-drop { border: 1.5px dashed var(--outline); border-radius: 16px; padding: 44px 24px; text-align: center; }
.p-drop.over { border-color: var(--text); }
.p-drop .big { font-family: var(--serif); font-size: 20px; }
.p-pics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .p-pics { grid-template-columns: 1fr; } }
.p-pic { border: 1px solid var(--hairline); border-radius: 14px; overflow: hidden; }
.p-pic .img { aspect-ratio: 4 / 3; background: rgba(28,28,30,0.06) center / cover no-repeat; }
.p-pic .meta { padding: 14px 16px; }
.p-pic .meta .p-input { padding: 8px 10px; font-size: 14px; margin-top: 6px; }
.p-choice { display: flex; gap: 10px; flex-wrap: wrap; }
.p-choice label { border: 1px solid var(--outline); border-radius: 999px; padding: 8px 16px; cursor: pointer; font-size: 14px; }
.p-choice input { margin-right: 8px; }
.p-choice label:has(input:checked) { background: var(--button-fill); color: var(--button-text); border-color: var(--button-fill); }
.p-check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.p-check input { margin-top: 4px; flex: none; }
.p-note { font-size: 13px; color: rgba(28,28,30,0.62); border-left: 2px solid var(--outline); padding: 6px 12px; margin: 0 0 24px; }
.p-error { color: #8A2E1E; font-size: 14px; margin-top: 12px; }
.p-frame { border: 6px solid var(--frame); box-shadow: var(--frame-shadow); aspect-ratio: 4 / 3; background: rgba(28,28,30,0.06) center / contain no-repeat; }
.p-plaque { display: inline-block; background: var(--brass); color: #2A1F0D; font-family: var(--serif); font-size: 12px; padding: 3px 10px; border-radius: 3px; margin-top: 8px; }
.p-thumb { width: 84px; height: 63px; border-radius: 6px; background: rgba(28,28,30,0.06) center / cover no-repeat; }
.p-progress { height: 3px; background: var(--hairline); border-radius: 2px; overflow: hidden; margin-top: 8px; }
.p-progress > i { display: block; height: 100%; background: var(--text); width: 0; transition: width 0.3s var(--ease); }
.p-terms { max-width: 720px; }
.p-terms p, .p-terms li { font-size: 16px; line-height: 1.6; }

.p-reason { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--hairline); border-radius: 10px; font-size: 14px; line-height: 1.45; max-width: 46em; }
.p-reason a { font-size: 13px; }
