/* Single-post sheet: blocks that render only on posts, below the article
   (author box, comment threads, comment form). Enqueued on is_singular('post')
   and non-blocking (functions.php GPS_NON_BLOCKING_STYLE_HANDLES), so
   other pages neither download it nor carry it as unused CSS (nightly
   Lighthouse unused-css-rules, myci #1466). */

/* ===== Author box (wordpress-seo gps-authority-signals) ===== */

.gps-author-box {
	--gps-ab-bg-from: #f8fafc;
	--gps-ab-bg-to: #f1f5f9;
	--gps-ab-line: #e2e8f0;
	--gps-ab-name: #1e293b;
	--gps-ab-title: #64748b;
	--gps-ab-skill-bg: #dbeafe;
	--gps-ab-skill: #1e40af;
	--gps-ab-credentials: #475569;
	--gps-ab-initial: #fff;
	background: linear-gradient(135deg, var(--gps-ab-bg-from) 0%, var(--gps-ab-bg-to) 100%);
	border: 1px solid var(--gps-ab-line);
	border-radius: 12px;
	padding: 24px;
	margin: 32px 0;
	display: flex;
	gap: 20px;
	align-items: flex-start;
}
.gps-author-box .gps-author-avatar {
	width: 72px;
	height: 72px;
	margin: 0;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}
.gps-author-box .gps-author-initial {
	background: var(--gps-brand);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--gps-ab-initial);
	font-size: 28px;
	font-weight: bold;
}
.gps-author-box .gps-author-body {
	flex: 1;
}
.gps-author-box .gps-author-name {
	margin: 0 0 4px;
	font-weight: 700;
	font-size: 18px;
	color: var(--gps-ab-name);
}
.gps-author-box .gps-author-title {
	margin: 0 0 12px;
	font-size: 14px;
	color: var(--gps-ab-title);
}
.gps-author-box .gps-author-skills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}
.gps-author-box .gps-author-skill {
	background: var(--gps-ab-skill-bg);
	color: var(--gps-ab-skill);
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 500;
}
.gps-author-box .gps-author-credentials {
	margin: 0;
	font-size: 13px;
	color: var(--gps-ab-credentials);
}
.gps-author-box .gps-author-social {
	margin-top: 12px;
}
.gps-author-box .gps-author-social a {
	color: var(--gps-link);
	text-decoration: none;
	font-size: 14px;
}
.gps-author-box .gps-author-social a + a {
	margin-left: 16px;
}

/* ─── Comments (inc/comment-walker.php) ───
   The parent filter tags avatars `media-object pull-left`, so Bootstrap's
   `.media > .pull-left { padding-right:10px }` squeezed a 64px border-box
   avatar into a 54x64 content box (oval logos, thin faces). Size it with
   margin instead and crop to a circle. */
.comment-list .gps-comment .avatar {
    width: 64px;
    height: 64px;
    padding: 0;
    margin-right: 16px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--gps-pal-tint-2);
}
.comment-list .gps-comment {
    margin-top: 24px;
}
/* Threads below the fold skip style, text shaping and layout until scrolled
   near: on php2shell-on-centos-7 the comments outgrew the article and pushed
   nightly Lighthouse TBT over 900 ms (myci #1228). */
.comment-list > .gps-comment {
    content-visibility: auto;
    contain-intrinsic-size: auto 600px;
}
.comment-list .gps-comment .children .gps-comment {
    margin-top: 20px;
}
.gps-comment-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    margin-bottom: 4px;
}
.gps-comment-author {
    font-weight: 700;
    font-size: 1.7rem;
    color: #333;
}
.gps-comment-badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 999px;
    background: rgba(var(--gps-pal-accent-rgb), .12);
    color: var(--gps-pal-accent-hover);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.gps-comment-date,
.gps-comment-edit a {
    font-size: 1.3rem;
    color: #6b7780;
}
.gps-comment--author > .media-body > .gps-comment-text {
    border-left: 3px solid rgba(var(--gps-pal-accent-rgb), .35);
    padding-left: 12px;
}
.gps-comment-text {
    line-height: 1.6;
    overflow-wrap: anywhere;
}
.gps-comment-text code {
    padding: 1px 5px;
    border-radius: 4px;
    background: #f3f5f7;
    color: #24292f;
    font-size: .9em;
}
.gps-comment-text pre {
    overflow-x: auto;
    white-space: pre;
}
.gps-comment-text pre code {
    padding: 0;
    background: none;
}
.gps-comment-reply a {
    font-size: 1.3rem;
    font-weight: 600;
}
.gps-comment-md-hint {
    margin-top: 6px;
    font-size: 1.3rem;
    color: #6b7780;
}
.gps-comment-md-hint code {
    padding: 1px 4px;
    border-radius: 3px;
    background: #f3f5f7;
    font-size: .95em;
}

/* Comment form: full-width fields, Name + Email side by side on desktop */
#commentform textarea#comment,
#commentform .comment-form-author input,
#commentform .comment-form-email input {
    display: block;
    width: 100%;
    max-width: none;
    padding: 11px 14px;
    border: 1px solid #cfd8dc;
    border-radius: 8px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
    font-size: 1.6rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
#commentform textarea#comment:focus,
#commentform .comment-form-author input:focus,
#commentform .comment-form-email input:focus {
    border-color: var(--gps-pal-accent);
    outline: none;
    box-shadow: 0 0 0 4px rgba(var(--gps-pal-accent-rgb), 0.18);
}
#commentform .comment-form-author label,
#commentform .comment-form-email label {
    display: block;
    margin-bottom: 6px;
    font-size: 1.4rem;
}
@media (min-width: 768px) {
    #commentform .comment-form-author,
    #commentform .comment-form-email {
        display: inline-block;
        width: calc(50% - 9px);
        vertical-align: top;
    }
    #commentform .comment-form-author {
        margin-right: 14px;
    }
}
#commentform #commentsubmit {
    min-height: 46px;
    padding: 10px 28px;
    border: none;
    border-radius: 8px;
    background: var(--gps-btn-bg);
    color: #fff;
    font-size: 1.6rem;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(var(--gps-pal-accent-rgb), 0.3);
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}
#commentform #commentsubmit:hover {
    background: var(--gps-btn-bg-hover);
    box-shadow: 0 6px 18px rgba(var(--gps-pal-accent-rgb), 0.4);
}
