/* The public pages of tenant domains and the report form: what is theirs
   beyond tokens.css and components.css. */
main.public { max-width: var(--prose); margin: 0 auto; padding-block: var(--s-5) var(--s-6); padding-inline: var(--s-4); display: flex; flex-direction: column; gap: var(--s-5); }
footer.public { max-width: var(--prose); margin: 0 auto; padding-inline: var(--s-4); padding-block: 0 var(--s-7); color: var(--muted); font-size: var(--t-sm); }

/* プロフィール */
header.profile { display: grid; grid-template-columns: auto 1fr; gap: var(--s-2) var(--s-4); align-items: start; padding: var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3); }
header.profile .avatar { grid-row: span 4; width: 4.5rem; height: 4.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 1.75rem; font-weight: 700; object-fit: cover; }
/* The margins of a fitted icon are transparent: white behind them, in both themes. */
header.profile img.avatar { background: oklch(100% 0 0); border: 1px solid var(--line); }
header.profile.with-header { padding-top: 0; overflow: hidden; }
header.profile .header-image { grid-column: 1 / -1; width: calc(100% + 2 * var(--s-5)); max-width: none; height: auto; aspect-ratio: 3 / 1; object-fit: cover; margin: 0 calc(-1 * var(--s-5)) var(--s-2); }
header.profile h1 { font-size: var(--t-xl); }
header.profile .handle { font-family: var(--mono); color: var(--muted); font-size: var(--t-sm); }
header.profile .summary { line-height: 1.75; }
header.profile .counts { color: var(--muted); font-size: var(--t-sm); }
header.profile .notice { grid-column: 2; }
form.follow { grid-column: 2; display: flex; flex-direction: column; gap: var(--s-1); font-size: var(--t-sm); }
form.follow label { font-weight: 600; }
form.follow .row { display: flex; gap: var(--s-2); flex-wrap: wrap; }
form.follow input[type="text"] { flex: 1 1 14rem; min-width: 0; padding: 0.45rem 0.6rem; border: 1px solid var(--line-strong); border-radius: var(--r-2); background: var(--surface); color: var(--fg); font: inherit; }
form.follow input[type="submit"] { flex: none; }

/* 投稿 */
section.posts { display: flex; flex-direction: column; gap: var(--s-3); }
article.post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3); padding: var(--s-4) var(--s-5); overflow-wrap: anywhere; }
article.post header { display: flex; align-items: center; gap: var(--s-3); font-size: var(--t-sm); margin-bottom: var(--s-2); }
article.post header .author { margin-right: auto; }
article.post header { align-items: flex-start; }
article.post header .permalink, article.post header .pin { margin-top: 0.35rem; }
article.post .permalink, article.post footer { color: var(--muted); font-size: var(--t-sm); }
article.post .permalink { text-decoration: none; font-variant-numeric: tabular-nums; }
article.post footer { margin-top: var(--s-3); }
article.post .content { line-height: 1.75; }
article.post .content p { margin: 0 0 var(--s-2); }
article.post .content p:last-child { margin: 0; }
article.post .attachments { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: var(--s-2); margin-top: var(--s-3); }
article.post .attachments img { width: 100%; height: auto; border-radius: var(--r-2); }
details.cw summary { cursor: pointer; font-weight: 650; margin-bottom: var(--s-2); }
.pager { display: flex; gap: var(--s-4); font-size: var(--t-sm); }

/* 通報フォーム */
form.report { display: flex; flex-direction: column; gap: var(--s-4); }
form.report .cf-turnstile { margin: 0; }
section.posts.pinned h2 { font-size: var(--t-sm); color: var(--muted); font-weight: 600; }

/* プロフィールのリンク。確認済みのものは印と色で示す */
header.profile dl.fields { display: grid; grid-template-columns: auto 1fr; gap: var(--s-1) var(--s-4); margin: var(--s-3) auto 0; max-width: 32rem; text-align: left; font-size: var(--t-sm); }
header.profile dl.fields dt { color: var(--muted); font-weight: 600; }
header.profile dl.fields dd { margin: 0; overflow-wrap: anywhere; }
header.profile dl.fields dd.verified { color: var(--ok); }
header.profile dl.fields dd.verified a { color: inherit; }
header.profile dl.fields .check { vertical-align: -0.15em; margin-right: 0.25em; }
footer.public .tagline a { color: inherit; }
