.subpage-layout:not(.subpage-layout-split) { grid-template-columns: minmax(0, 1fr); }
.subpage-content { min-width: 0; padding: 20px 22px 22px; }
.subpage-layout-split .subpage-content { padding-bottom: 34px; }
.subpage-identity h2 { color: var(--profile-ink); font-size: 25px; line-height: 31px; font-weight: 700; }
.subpage-identity h2 a { color: inherit; text-decoration: none; }
.subpage-identity h2 a:hover { text-decoration: underline; }
.subpage-heading { display: grid; justify-items: start; gap: 7px; margin-bottom: 12px; }
.subpage-back { font-size: 13px; line-height: 19px; }
.subpage-heading h1 { font-size: 29px; line-height: 37px; font-weight: 700; }
.subpage-heading .profile-byline { font-size: 14px; line-height: 19px; }
.subpage-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 158px)); gap: 8px; margin-bottom: 19px; }
.subpage-tabs .profile-chip { min-height: 38px; padding: 7px; border-radius: 4px; }
.subpage-layout [aria-current="page"].profile-chip { background: var(--profile-tint); border-color: #c8dde6; font-weight: 700; }
.subpage-layout .subpage-empty { padding: 14px; border-radius: 5px; background: var(--profile-pale); color: var(--profile-muted); font-size: 14px; line-height: 21px; }
.subpage-photos, .subpage-videos, .subpage-people { display: grid; margin: 0; padding: 0; list-style: none; }
.subpage-photos { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.subpage-photos a, .subpage-videos .subpage-video-cover {
    box-sizing: border-box;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 5px;
    text-decoration: none;
}
.subpage-photos a { aspect-ratio: 1; background: #f0f5f7; }
.subpage-photos a:hover img { filter: brightness(1.06); }
.subpage-photos img { display: block; width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.subpage-photos span { padding: 8px; text-align: center; font-size: 13px; color: var(--profile-muted); }
.subpage-photo-view {
    display: grid;
    place-items: center;
    min-height: 460px;
    margin: 0;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid var(--profile-line);
    border-radius: 5px;
    background: #f4f7f8;
}
.subpage-photo-view img { max-width: 100%; max-height: min(620px, 70vh); object-fit: contain; }
.subpage-pager { display: grid; grid-template-columns: minmax(0, 145px) auto minmax(0, 145px); justify-content: space-between; align-items: center; gap: 8px; margin-top: 15px; }
.subpage-pager .profile-chip { min-height: 38px; padding-inline: 12px; }
.subpage-pager span, .subpage-photo-meta { color: var(--profile-muted); font: 13px/19px Arial, sans-serif; }
.subpage-photo-meta { display: flex; justify-content: space-between; align-items: center; gap: 7px; margin-top: 9px; }

.subpage-videos, .subpage-people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.subpage-videos { gap: 13px; }
.subpage-videos li { min-width: 0; }
.subpage-videos .subpage-video-cover, .subpage-video-frame {
    display: grid;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: #233842;
    cursor: pointer;
}
.subpage-video-poster { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.subpage-video-play {
    display: block;
    position: relative;
    width: 42px;
    height: 42px;
    overflow: hidden;
    border-radius: 50%;
}
.subpage-video-play img { position: absolute; top: 50%; left: 50%; max-width: none; transform: translate(-50%, -50%); }
.subpage-video-cover:hover .subpage-video-play { filter: brightness(.9); }
.subpage-video-info { display: grid; gap: 5px; padding: 7px 0 0; color: var(--profile-muted); font-size: 13px; line-height: 19px; }

.subpage-people { gap: 9px; }
.subpage-layout .subpage-person {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 50px;
    box-sizing: border-box;
    padding: 6px 9px;
    border: 1px solid var(--profile-line);
    border-radius: 5px;
    color: var(--profile-ink);
    text-decoration: none;
}
.subpage-person:hover { background: #f4f7f8; }
.subpage-initial { display: grid; place-items: center; aspect-ratio: 1; border-radius: 4px; background: var(--profile-tint); color: var(--profile-link); font-size: 14px; font-weight: 700; }
.subpage-person strong, .subpage-person small { display: block; line-height: 18px; }
.subpage-person strong { font-size: 14px; }
.subpage-person small { font-size: 12px; color: var(--profile-muted); }

.subpage-answer-card { padding: 13px 13px 16px; border: 1px solid var(--profile-line); border-radius: 5px; }
.subpage-answer-card h2 { font-size: 18px; line-height: 25px; font-weight: 700; }
.subpage-answer-card .subpage-answer-copy { margin: 11px 0 18px; font-size: 15px; line-height: 21px; color: #30454f; }
.subpage-answer-meta { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; color: var(--profile-muted); font-size: 12px; line-height: 18px; }
.subpage-answer-meta p { flex: 1; min-width: min(130px, 100%); }
.subpage-layout .subpage-reaction { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 31px; min-height: 28px; padding: 2px 4px; border: 0; border-radius: 4px; background: transparent; color: var(--profile-link); font: 12px/18px Arial, sans-serif; text-decoration: none; cursor: pointer; }
.subpage-layout .subpage-reaction:hover { background: var(--profile-tint); }
.subpage-management { display: flex; align-items: center; gap: 4px; margin-top: 9px; }
.subpage-management button, .subpage-remove { padding: 0; border: 0; background: none; color: var(--profile-link); font: 12px/18px Arial, sans-serif; text-decoration: underline; cursor: pointer; }
.subpage-comments { margin-top: 22px; }
.subpage-comments h2 { margin-bottom: 9px; font-size: 20px; line-height: 27px; font-weight: 700; }
.subpage-comments-list { display: grid; gap: 8px; scroll-margin-top: 53px; }
.subpage-comment { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px; border: 1px solid var(--profile-line); border-radius: 5px; background: #f4f7f8; font-size: 14px; line-height: 20px; }
.subpage-comment-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1px 8px; margin-bottom: 3px; }
.subpage-comment-heading a { color: inherit; text-decoration: none; }
.subpage-comment-heading a:hover { text-decoration: underline; }
.subpage-comment-heading time { color: var(--profile-muted); font-size: 12px; }
.subpage-comment-actions { display: flex; align-items: center; justify-content: end; gap: 8px; }
.subpage-comment-actions .subpage-reaction { min-height: 24px; }
.subpage-comment-form { display: grid; gap: 7px; margin-top: 18px; }
.subpage-comment-form > label { font-size: 17px; line-height: 23px; font-weight: 700; }
.subpage-comment-form textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 70px;
    padding: 10px;
    border: 1px solid #909ca0;
    border-radius: 4px;
    box-shadow: inset 0 1px 3px rgb(0 0 0 / .1);
    color: var(--profile-ink);
    font: 14px/20px Arial, sans-serif;
    resize: vertical;
}
.subpage-comment-form textarea::placeholder { color: var(--profile-muted); opacity: 1; }
.subpage-comment-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.subpage-comment-controls button { margin-left: auto; }
.subpage-comment-feedback { color: var(--profile-muted); font-size: 13px; line-height: 20px; }

@media (max-width: 680px) {
    .subpage-identity { display: none; }
    .subpage-content, .subpage-layout-split .subpage-content { padding: 17px 16px 20px; }
    .subpage-heading h1 { font-size: 24px; line-height: 31px; }
    .subpage-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 15px; }
    .subpage-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .subpage-photo-view { min-height: 300px; padding: 6px; }
    .subpage-photo-view img { max-height: 56vh; }
    .subpage-videos, .subpage-people { grid-template-columns: minmax(0, 1fr); gap: 9px; }
    .subpage-answer-meta { justify-content: flex-end; }
    .subpage-answer-meta p { flex: 0 0 100%; }
    .subpage-comment-form textarea { font-size: 16px; }
    .subpage-comment-controls button { width: 100%; }
    .public-subpage .l-page-h:has(.g-header-notification) .subpage-comments-list { scroll-margin-top: 99px; }
}
