/* File: /assets/css/author.css
   Module: the author page (author.php). The page frame, the section heads and
   the guide cards come from style.css; this file adds the head with the photo,
   the bio with the contact card beside it and the list of profiles. Every
   color is a theme token. */

.ch-au-head { display: flex; align-items: center; gap: 28px; margin-bottom: 56px; }
.ch-au-photo { flex: none; width: 104px; height: 104px; border: 1px solid var(--line); border-radius: 50%; object-fit: cover; }
.ch-au-id { min-width: 0; }
.ch-au-name { margin-bottom: 10px; }
.ch-au-role { margin: 0; color: var(--fg-2); font-size: 1.125rem; line-height: 1.5; }
.ch-au-facts { display: flex; flex-wrap: wrap; margin: 6px 0 0; color: var(--fg-3); font-size: 14px; }
.ch-au-facts > * + *::before { content: "\00b7"; margin: 0 8px; }

/* The bio reads like an article; the contact card sits beside it. */
.ch-au-main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; }
.ch-au-bio { max-width: 65ch; }
.ch-au-bio p { margin: 0 0 1.25em; color: var(--text); font-size: 1.125rem; line-height: 1.7; }
.ch-au-bio p:last-child { margin-bottom: 0; }
.ch-au-bio strong { color: var(--fg); font-weight: 600; }

.ch-au-contact { padding: 24px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-lg); }
.ch-au-title { margin: 0 0 6px; font-size: 1rem; font-weight: 600; line-height: 1.4; }
.ch-au-lead { margin: 0 0 16px; color: var(--fg-2); font-size: 14.5px; line-height: 1.5; }

.ch-au-mail,
.ch-au-mail:visited {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    padding: 12px 14px;
    background: var(--bg);
    color: var(--fg);
    border: 1px solid var(--line-2);
    border-radius: 10px;
}
.ch-au-mail:hover, .ch-au-mail:focus-visible { background: var(--bg-3); color: var(--fg); }
.ch-au-mail svg { color: var(--fg-2); }
.ch-au-mail > span { display: grid; gap: 2px; min-width: 0; }
.ch-au-mail-label { color: var(--fg-2); font-size: 13px; }
.ch-au-mail-addr { overflow: hidden; font-size: 15px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }

.ch-au-label { margin: 22px 0 8px; color: var(--fg-3); font-size: 13px; font-weight: 500; }
.ch-au-projects { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.ch-au-projects li { display: flex; align-items: baseline; gap: 10px; margin: 0; color: var(--text); font-size: 14px; line-height: 1.45; }
.ch-au-projects li::before { content: ""; flex: none; width: 5px; height: 5px; background: var(--fg-3); border-radius: 50%; transform: translateY(-2px); }

/* Profiles: one row per site, three columns, hairlines between the rows. */
.ch-au-profiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; margin: 0; padding: 0; list-style: none; }
.ch-au-profiles li { margin: 0; border-top: 1px solid var(--line); }
.ch-au-profile,
.ch-au-profile:visited {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    color: var(--fg);
}
.ch-au-profile-ico { display: inline-flex; color: var(--fg-2); }
.ch-au-profile-text { display: grid; gap: 1px; min-width: 0; }
.ch-au-profile-name { font-size: 15px; font-weight: 600; }
.ch-au-profile-desc { overflow: hidden; color: var(--fg-3); font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
.ch-au-profile > svg { color: var(--fg-3); transition: color 0.15s ease, transform 0.15s ease; }
.ch-au-profile:hover .ch-au-profile-name { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.ch-au-profile:hover > svg { color: var(--fg); transform: translate(1px, -1px); }

/* Page 2 and later: the guides come right under the name. */
.ch-au-guides { margin-top: 0; }

@media (max-width: 1024px) {
    .ch-au-main { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .ch-au-contact { max-width: 34rem; }
    .ch-au-profiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .ch-au-head { flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 40px; }
    .ch-au-photo { width: 80px; height: 80px; }
    .ch-au-facts { flex-direction: column; gap: 2px; }
    .ch-au-facts > * + *::before { content: none; }
    .ch-au-bio p { font-size: 1.0625rem; }
    .ch-au-contact { padding: 20px; }
    .ch-au-profiles { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .ch-au-profile > svg { transition: none; }
    .ch-au-profile:hover > svg { transform: none; }
}
