/*
Theme Name: Beachball Help Member Theme
Description: Child theme of the Beaver Builder theme. Renders the "Beachball Help Member Home Page" design directly as every subsite's front page template, wired to live WordPress data (display name, avatar, bio, photo/banner, certifications, and a master Member Feed of Threads/Stories/Substack/Bluesky/Mastodon) instead of a cloned page or the Design Kit's static-HTML importer.
Author: Beachball Help
Template: bb-theme
Version: 1.82

*** IMPORTANT — VERIFY THE LINE ABOVE ***
"Template:" must exactly match the folder name of your Beaver Builder
parent theme under wp-content/themes/ (case-sensitive). If your parent
theme's folder is not literally "bb-theme", change the line above to
match, or WordPress will refuse to activate this child theme and show
a "Broken Theme" error. Check: Network Admin -> Themes -> hover the
Beaver Builder theme's "Theme Details" link (the slug is in the URL),
or look directly at the folder name in wp-content/themes/ via FTP/file
manager.
*/

/* @section Profile Header */
.profile-header {
  position: relative; /* anchors .bb-theme-toggle-row (top right of the hero) below */
  padding: var(--ds-space-xl) 0 var(--ds-space-lg);
}
/* Facebook's cover-photo standard is 820x360 -- most members already have a
   banner cropped to that ratio (2.278:1) for use across their other social
   profiles, so matching it here means it drops in without re-cropping.
   aspect-ratio keeps that ratio as the hero's width changes; max-height caps
   it at the same 360px Facebook itself displays a cover at, so it never
   grows taller than that standard on wide screens (background-size: cover
   just crops a bit more off the sides there instead). */
.profile-cover {
  /* The background-COLOR strip -- deliberately full-bleed (no max-width),
     so a member's chosen color runs edge-to-edge of the browser window
     rather than stopping at the width-capped column of cards below it.
     width: 100% is NOT redundant here -- without it, combining
     aspect-ratio with max-height on a block box with no explicit width
     let the browser solve backwards from the capped height and shrink
     the box down to a fixed 820x360 instead of staying full-bleed, which
     was the actual bug behind the banner "not being centered" (it was a
     fixed-width box sitting flush left, not a full-width one). */
  width: 100%;
  aspect-ratio: 820 / 360;
  max-height: 360px;
  /* background-color comes from front-page.php's inline style (the member's
     own chosen fallback color, AT_META_COVER_BG_COLOR). */
}
.profile-cover-image {
  /* The actual photo, width-capped and centered to match
     .profile-header-grid's own max-width + centering below, so the photo's
     left/right edges line up with the cards under it -- a full-bleed PHOTO
     on a wide monitor looked "off center" against the centered column of
     cards beneath it, even though the image was itself centered within its
     own box. The .profile-cover color strip around it still runs full width. */
  max-width: var(--ds-width-container);
  margin: 0 auto;
  height: 100%;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}
.profile-header.has-cover {
  padding-top: 0;
}
.profile-header.has-cover .bb-container {
  padding-top: var(--ds-space-lg);
}
.profile-header-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--ds-space-md);
  align-items: start;
  max-width: var(--ds-width-container);
  margin: 0 auto;
}
/* Pulls the User Info card and the Certifications/Activity column up to
   overlap the member's chosen cover image -- only meaningful (and only
   applied) when there is one. position + z-index keep both cards painting
   on top of .profile-cover rather than relying on DOM order alone. */
.profile-header.has-cover .profile-header-grid {
  position: relative;
  z-index: 1;
  margin-top: -60px;
}
.profile-card,
.certifications-card,
.conferences-card {
  background: var(--ds-color-surface);
  border: 1px solid var(--ds-color-line);
  border-radius: var(--ds-radius-md);
  box-shadow: var(--ds-shadow-card);
  padding: var(--ds-space-md);
}
.profile-card-head {
  display: flex;
  gap: var(--ds-space-md);
  align-items: center;
  flex-wrap: wrap;
}
.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: var(--ds-radius-pill);
  background: var(--ds-color-mat-tint);
  flex: none;
  overflow: hidden;
  box-sizing: border-box;
}
.profile-avatar img,
.profile-avatar svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.profile-card-headline {
  flex: 1;
  min-width: 160px;
}
/* Its own row at the top left of the card, above the avatar/name -- same
   .box-edit-link treatment as Certifications and Gear I've Owned use, just
   without a heading to sit beside (there isn't one at the very top of this
   card), so it gets a line of its own instead of being paired inline with
   the <h1>. margin-bottom pulls .profile-card-head up under it rather than
   leaving a double gap. */
.profile-card-edit-row {
  margin-bottom: var(--ds-space-xs);
}
/* Pinned to the top right of the User Info card's head row -- sits beside
   the avatar/name rather than floating above Certifications the way it used
   to. margin-left: auto pushes it to the end of the flex row regardless of
   how much name/tagline text comes before it; align-self keeps it level
   with the avatar/name rather than the row's vertical center once the
   headline wraps to two lines. Holds .profile-verified-badge and
   .profile-open-badge stacked (Open to work sits right below Verified, per
   how Cameron asked for it) -- each renders independently depending on
   what's actually set for this member, so the stack can hold one, both, or
   (rendered not at all, by the surrounding PHP) neither. */
.profile-status-stack {
  margin-left: auto;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.profile-verified-badge,
.profile-open-badge {
  white-space: nowrap;
}
.profile-name {
  font-family: var(--ds-font-heading);
  font-size: var(--ds-text-2xl);
  font-weight: var(--ds-weight-bold);
  letter-spacing: var(--ds-letter-tight);
}
.profile-tagline {
  margin-top: var(--ds-space-xs);
  font-size: var(--ds-text-base);
  color: var(--ds-color-ink);
}
.profile-meta {
  margin: var(--ds-space-md) 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-md) var(--ds-space-lg);
}
.profile-meta-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.profile-meta-item dt {
  font-size: var(--ds-text-xs);
  font-weight: var(--ds-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ds-color-ink-soft);
}
.profile-meta-item dd {
  margin: 0;
  font-size: var(--ds-text-sm);
  font-weight: var(--ds-weight-medium);
  color: var(--ds-color-ink);
}
.profile-about {
  margin-top: var(--ds-space-md);
  padding-top: var(--ds-space-md);
  border-top: 1px solid var(--ds-color-line);
}
.profile-about .about-heading {
  font-family: var(--ds-font-heading);
  font-weight: var(--ds-weight-semibold);
}
.profile-about p {
  margin-top: var(--ds-space-sm);
  color: var(--ds-color-ink);
  line-height: var(--ds-line-body);
}
/* About now allows basic HTML (bold, italic, lists, links) from the TinyMCE editor on
   /profile/edit/ -- see atechs_about_html() in appletechs-core. Only the link color
   needs setting here; everything else (p spacing above, list markers, bold/italic)
   already looks right from browser/theme defaults. */
.profile-about a {
  color: var(--ds-color-mat);
}
.profile-status-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--ds-text-sm);
  font-weight: var(--ds-weight-medium);
  color: var(--ds-color-mat);
}
.profile-status-item svg {
  width: 16px;
  height: 16px;
  flex: none;
}
/* "Find your old Apple Forum threads" callout -- front-page.php, directly
   under the About box. Same amber/"kapton" notice coloring as
   .at-pending-approval-notice elsewhere in this file, just boxed with a
   heading + CTA button rather than a plain banner line. */
.profile-claim-threads {
  margin-top: var(--ds-space-md);
  padding: var(--ds-space-md);
  background: var(--ds-color-kapton-tint);
  border-radius: var(--ds-radius-md);
}
.profile-claim-threads-heading {
  margin: 0 0 var(--ds-space-xs);
  font-family: var(--ds-font-heading);
  font-weight: var(--ds-weight-semibold);
  color: var(--ds-color-kapton-deep);
}
.profile-claim-threads p {
  margin: 0 0 var(--ds-space-sm);
  color: var(--ds-color-ink);
  line-height: var(--ds-line-body);
}
.profile-claim-threads p:last-child {
  margin-bottom: 0;
}
.profile-cta {
  margin-top: var(--ds-space-md);
}
/* .atechs-how ("How you're connected") comes from appletechs-core's own
   atechs.css, loaded network-wide (confirmed live -- it isn't main-site-only
   despite an older comment near .at-edit-photo-page saying otherwise). Only
   re-pointing its border/radius at this theme's own tokens so it reads as
   part of this card rather than a generic inserted box; not duplicating its
   layout rules. */
.profile-card .atechs-how {
  margin-top: var(--ds-space-md);
  border-color: var(--ds-color-line);
  border-radius: var(--ds-radius-md);
}

/* @section Profile Side (Certifications + Activity, stacked next to
   .profile-card inside .profile-header-grid) */
.profile-side {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-md);
}

/* The theme-switcher dropdown itself now lives directly in #profile-header
   (front-page.php), not .profile-side, so it can sit pinned to the top
   right of the Hero rather than above the Certifications card. Its base
   flex/label/select look still comes from theme-classic.css (always
   enqueued); this just adds the positioning. z-index keeps it above both
   .profile-cover and the overlapping .profile-header-grid cards above. */
.bb-theme-toggle-row {
  position: absolute;
  top: var(--ds-space-md);
  right: var(--ds-space-md);
  z-index: 3;
}
/* "Theme: " is now baked into each <option>'s own text (front-page.php) so
   it's part of the select's displayed value on any background -- this
   label is kept only for screen readers. */
.bb-theme-toggle-label.is-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.activity-card {
  background: var(--ds-color-surface);
  border: 1px solid var(--ds-color-line);
  border-radius: var(--ds-radius-md);
  box-shadow: var(--ds-shadow-card);
  padding: var(--ds-space-md);
}
.activity-heading {
  font-family: var(--ds-font-heading);
  font-weight: var(--ds-weight-semibold);
}
.activity-stats {
  margin-top: var(--ds-space-sm);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: var(--ds-space-md);
}
.activity-value {
  font-weight: var(--ds-weight-bold);
  font-size: var(--ds-text-xl);
  color: var(--ds-color-mat);
}
.activity-label {
  margin-top: 4px;
  font-size: var(--ds-text-sm);
  color: var(--ds-color-ink-soft);
}

/* @section Certifications — now the right-hand card in .profile-header-grid,
   next to .profile-card (avatar + name + title/company + about). The card's
   background/border/shadow/padding is shared with .profile-card above.

   .certifications-side holds the "fixing Apple gear since" badge and the
   Specialties block ("Verified technician" moved to .profile-card's head
   instead). It's floated to the top right of the card, so the Certifications
   heading and list below it start in normal flow at the very top of the
   card and simply wrap around the float, rather than being pushed down by
   a full-width head row. display: flow-root on the card itself means its
   own height always includes this float even when nothing below needs to
   clear it (e.g. a member with no owned gear and a short cert list). */
.certifications-card {
  display: flow-root;
}
.certifications-side {
  float: right;
  width: 180px;
  margin: 0 0 var(--ds-space-md) var(--ds-space-md);
}
.certifications-side .specialties-heading {
  margin-top: var(--ds-space-sm);
}
.cert-since-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex: none;
  gap: 2px;
  text-align: right;
  background: var(--ds-color-mat-tint);
  border-radius: var(--ds-radius-sm);
  padding: 5px 10px;
}
.cert-since-value {
  font-size: var(--ds-text-base);
  font-weight: var(--ds-weight-bold);
  color: var(--ds-color-mat);
  line-height: 1.2;
}
.cert-since-label {
  font-size: var(--ds-text-xs);
  color: var(--ds-color-ink-soft);
  white-space: nowrap;
}
.certifications-heading,
.specialties-heading {
  font-family: var(--ds-font-heading);
  font-weight: var(--ds-weight-semibold);
}
.specialties-heading {
  margin-top: var(--ds-space-lg);
}
/* Pairs the "Certifications" heading with the member's own "Edit this info"
   link -- only rendered at all (front-page.php) when the logged-in viewer
   is the member whose profile this is. */
.certifications-heading-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--ds-space-sm);
  flex-wrap: wrap;
}
.certifications-heading-row .certifications-heading {
  margin: 0;
}
.box-edit-link {
  font-size: var(--ds-text-xs);
  font-weight: var(--ds-weight-medium);
  color: var(--ds-color-mat);
  text-decoration: none;
  white-space: nowrap;
}
.box-edit-link:hover {
  text-decoration: underline;
}
.certifications-list {
  margin-top: var(--ds-space-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.certifications-list li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: var(--ds-text-sm);
  color: var(--ds-color-ink);
}
.certifications-list svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--ds-color-solved);
}
/* .cert-text wraps .cert-name and .cert-date (see
   at_member_fields_certifications_shortcode() in beachball-help-member-fields.php)
   in a column so the date sits on its own line below the certification name,
   rather than inline right after it where a long name could wrap the date
   awkwardly mid-line. */
.certifications-list .cert-text {
  display: flex;
  flex-direction: column;
}
.certifications-list .cert-date {
  color: var(--ds-color-muted, #6b7280);
  font-size: 0.9em;
}
.specialties-list {
  margin-top: var(--ds-space-sm);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.specialty-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ds-color-mat);
  color: var(--ds-color-mat);
  border-radius: var(--ds-radius-sm);
  padding: 4px 10px;
  font-size: var(--ds-text-sm);
}

/* @section Conferences — its own card (front-page.php) between Certifications and
   Activity, [at_conferences] shortcode in member-fields.php. Same heading-row/
   "Edit this info" pattern as Certifications/Gear above, and the same .atechs-tag
   pill (appletechs-core's atechs.css, loaded network-wide -- see the note on
   .profile-card .atechs-how above) every other theme on the site already styles
   for Attended/Presented/Sponsored, so no new pill styling is needed here. */
.conferences-heading-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--ds-space-sm);
  flex-wrap: wrap;
}
.conferences-heading-row .conferences-heading {
  margin: 0;
}
.conferences-heading {
  font-family: var(--ds-font-heading);
  font-weight: var(--ds-weight-semibold);
}
.conferences-heading-link {
  color: inherit;
  text-decoration: none;
}
.conferences-heading-link:hover,
.conferences-heading-link:focus {
  text-decoration: underline;
}
/* "N Attended / N Presented / ..." pill row (at_mf_conference_role_counts_html(),
   member-fields.php's show_counts="1") -- sits between the heading row above and the
   edition list below, same .atechs-tag pill every theme already styles, just wrapped
   with its own spacing/wrap rules here rather than .conference-pills' (that one's
   per-edition, flex:none so it never wraps the row it's inline with; this one is its
   own full-width row and should wrap normally). */
.conference-role-counts {
  margin-top: var(--ds-space-sm);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.conferences-list {
  margin-top: var(--ds-space-sm);
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-sm);
}
.conference-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding-bottom: var(--ds-space-sm);
  border-bottom: 1px solid var(--ds-color-line);
}
.conferences-list .conference-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.conference-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.conference-name {
  font-size: var(--ds-text-sm);
  font-weight: var(--ds-weight-medium);
  color: var(--ds-color-ink);
}
.conference-meta {
  font-size: 0.9em;
  color: var(--ds-color-muted, #6b7280);
}
.conference-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: none;
}
/* One per talk given at this edition (at_member_fields_conferences_shortcode(),
   member-fields.php) -- a Tech who spoke more than once at the same edition gets more
   than one of these under the same .conference-row, each with its own title/links. */
.conference-presentation {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--ds-space-sm) var(--ds-space-md);
  font-size: var(--ds-text-xs);
}
.conference-presentation-title {
  font-weight: var(--ds-weight-medium);
  color: var(--ds-color-ink);
}
/* "Session Title:" label -- /conferences/ page only (at_mf_conference_edition_html(),
   member-fields.php, gated on the same $icons flag that picks full-text vs icon-only
   links below) -- a touch lighter than the title itself so the title stays the focal
   point. */
.conference-presentation-title-label {
  font-weight: var(--ds-weight-regular);
  color: var(--ds-color-ink-soft, var(--ds-color-muted, #6b7280));
}
.conference-presentation a {
  color: var(--ds-color-mat);
  text-decoration: none;
}
.conference-presentation a:hover {
  text-decoration: underline;
}
/* The small document/video icon that now sits inline before "Presentation -->"/
   "Video -->" on the full-text style (/conferences/ page) -- same at_mf_conference_
   link_icon() markup the icon-only style uses below, just smaller and vertically
   centered against the link text rather than standing alone. */
.conference-link-icon-inline {
  display: inline-flex;
  width: 13px;
  height: 13px;
  margin-right: 4px;
  vertical-align: -2px;
}
.conference-link-icon-inline svg {
  width: 100%;
  height: 100%;
}
/* Icon-only presentation/video links -- the Member Home Page box's 'link_style="icons"'
   (front-page.php passes it; the full-text links above are the /conferences/ page's own
   default). No underline on hover (nothing is underlined to begin with); a little
   opacity dim instead, same idea as an icon button elsewhere would use. */
.conference-link-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
}
.conference-link-icon svg {
  width: 100%;
  height: 100%;
}
.conference-link-icon:hover {
  text-decoration: none;
  opacity: 0.7;
}
/* The Member Home Page box's own "View all N conferences" link, shown only once its
   'limit' attribute actually hides something (at_member_fields_conferences_shortcode(),
   member-fields.php). */
.conferences-view-all {
  margin-top: var(--ds-space-sm);
  font-size: var(--ds-text-xs);
}
.conferences-view-all a {
  color: var(--ds-color-mat);
  text-decoration: none;
}
.conferences-view-all a:hover {
  text-decoration: underline;
}

/* @section Member Feed row -- Feed (main, 3fr) and Find Me Elsewhere (side, 1fr) side by
   side, since Find Me Elsewhere is just a short list of links next to the much longer
   scrolling Feed, not two sections of equal weight. Stacks on narrow screens. */
.member-feed-row {
  padding: var(--ds-space-md) 0 var(--ds-space-xl);
}
.member-feed-row-grid {
  /* Same column gutter as .profile-header-grid above (the About/Activity row) --
     this was var(--ds-space-xl), nearly 3x that row's gap, which is what read as
     inconsistent padding between the two rows of cards on this page. */
  max-width: var(--ds-width-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: var(--ds-space-md);
  align-items: start;
}
@media (max-width: 820px) {
  .member-feed-row-grid {
    grid-template-columns: 1fr;
  }
}

/* @section Find Me Elsewhere
   .member-feed-row-heading is shared with Feed's own heading (.member-feed-heading,
   printed by the [at_member_feed] shortcode) so both columns' titles are the exact same
   size -- the heading and intro line now live inside .elsewhere-card itself (see
   front-page.php), so the card's own padding is what keeps everything lined up; no
   special-case spacing needed here. */
.member-feed-row-heading {
  font-size: var(--ds-text-lg);
  font-weight: var(--ds-weight-semibold);
  color: var(--ds-color-ink);
  margin: 0 0 var(--ds-space-xs) 0;
}
.elsewhere-intro {
  margin: 0 0 var(--ds-space-md) 0;
  font-size: var(--ds-text-sm);
  color: var(--ds-color-ink-soft);
}
.elsewhere-card {
  background: var(--ds-color-surface);
  border: 1px solid var(--ds-color-line);
  border-radius: var(--ds-radius-md);
  box-shadow: var(--ds-shadow-card);
  padding: var(--ds-space-md);
}
/* Open Communities vs. Walled Gardens: two groups so it's visually obvious which
   links go somewhere open (its own brand color, full strength) and which go behind a
   closed platform (dark-gray label, medium-gray icon + handle -- the color itself is
   the signal, not just the group heading). */
.elsewhere-group + .elsewhere-group {
  margin-top: var(--ds-space-lg);
}
.elsewhere-group-heading {
  font-size: var(--ds-text-xs);
  font-weight: var(--ds-weight-semibold);
  color: var(--ds-color-ink-soft);
  margin: 0 0 var(--ds-space-sm) 0;
}
.elsewhere-links {
  margin-top: var(--ds-space-sm);
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-md);
}
.elsewhere-group-heading:first-child,
.elsewhere-group > .elsewhere-group-heading {
  margin-top: 0;
}

/* @section Gear I've Owned -- lives inside .certifications-card now (front-page.php),
   right under Specialties, rather than its own card in the #member-elsewhere column.
   No card chrome of its own here: it inherits the Certifications card's background,
   border and padding, the same way Specialties does just above it.

   Rendered as a Dock: one row of bare icons (currently-owned gear only), each
   identified by its title attribute/alt text on hover rather than a printed
   label -- there's no room for names once it's a single row. Previously-owned
   gear gets its own Dock row inside a <details>, collapsed by default. */
/* Pairs the "Gear I've owned" heading with its own "Edit this info" link,
   same pattern as .certifications-heading-row -- the row itself carries the
   margin-top/clear that used to be on .owned-gear-heading directly. */
.owned-gear-heading-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--ds-space-sm);
  flex-wrap: wrap;
  margin-top: var(--ds-space-lg);
  clear: both; /* always starts below .certifications-side's float, never beside it */
}
.owned-gear-heading {
  font-family: var(--ds-font-heading);
  font-weight: var(--ds-weight-semibold);
  margin: 0;
}
.owned-gear-dock {
  margin: var(--ds-space-sm) 0 0;
  padding: var(--ds-space-sm);
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--ds-color-mat-tint);
  border-radius: var(--ds-radius-md);
}
.owned-gear-dock-item {
  flex: none;
  width: 53px;
  height: 53px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--ds-radius-sm);
  background: var(--ds-color-surface);
  box-shadow: var(--ds-shadow-card);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.owned-gear-dock-item img {
  width: 38px;
  height: 38px;
  display: block;
}
/* A little Dock-style lift on hover/focus -- the one bit of motion in this
   section, and it only answers the viewer's own action. */
.owned-gear-dock-item:hover,
.owned-gear-dock-item:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
}
@media (prefers-reduced-motion: reduce) {
  .owned-gear-dock-item {
    transition: none;
  }
  .owned-gear-dock-item:hover,
  .owned-gear-dock-item:focus-within {
    transform: none;
  }
}
.owned-gear-previous {
  margin-top: var(--ds-space-sm);
}
.owned-gear-previous summary {
  cursor: pointer;
  font-size: var(--ds-text-sm);
  font-weight: var(--ds-weight-medium);
  color: var(--ds-color-ink-soft);
  list-style: none;
}
.owned-gear-previous summary::-webkit-details-marker {
  display: none;
}
.owned-gear-previous summary::before {
  content: '▸';
  display: inline-block;
  margin-right: 6px;
  font-size: 0.8em;
  transition: transform 0.12s ease;
}
.owned-gear-previous[open] summary::before {
  transform: rotate(90deg);
}
.owned-gear-previous .owned-gear-dock-previous {
  background: transparent;
  padding-left: 0;
  padding-right: 0;
}
.owned-gear-previous .owned-gear-dock-previous .owned-gear-dock-item {
  opacity: 0.75;
}
.elsewhere-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--ds-text-sm);
  color: var(--ds-color-mat); /* fallback; each brand below overrides this */
}
.elsewhere-link:hover .elsewhere-label,
.elsewhere-link:hover .elsewhere-value {
  text-decoration: underline;
}
.elsewhere-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.elsewhere-label {
  font-weight: var(--ds-weight-bold);
}
.elsewhere-value {
  font-weight: var(--ds-weight-medium);
}
.elsewhere-icon {
  display: inline-flex;
  flex: none;
  margin-top: 1px;
}
.elsewhere-icon svg,
.elsewhere-icon .brand-icon-img {
  width: 20px;
  height: 20px;
  display: block;
}
/* Real per-platform brand colors for the Open Communities group, matching each
   platform's own mark — icon and text share one color so the whole row reads as that
   brand. */
.elsewhere-link-site,
.elsewhere-link-personalsite,
.elsewhere-link-professionalsite {
  color: #f26522;
}
.elsewhere-link-bluesky {
  color: #1185fe;
}
.elsewhere-link-mastodon {
  color: #6364ff;
}
.elsewhere-link-substack {
  color: #ff6719;
}
.elsewhere-link-metafilter {
  color: #065a8f;
}
.elsewhere-link-slashdot {
  color: #026664;
}
/* .elsewhere-link-beachball intentionally has no override here -- it keeps the
   fallback var(--ds-color-mat) above, which IS the Beachball Help brand color. */
/* Walled Gardens group: no brand color, on purpose -- grayscale is the signal that
   there's no public feed here. The label reads a shade darker than the icon/handle so
   the platform name still stands out as the thing to read first. Smaller text too, so
   the group reads as visually quieter/secondary next to Open Communities. */
.elsewhere-group-walled .elsewhere-link {
  color: var(--ds-color-ink-soft);
}
.elsewhere-group-walled .elsewhere-label {
  color: var(--ds-color-ink);
}
.elsewhere-group-walled .elsewhere-icon svg,
.elsewhere-group-walled .elsewhere-icon .brand-icon-img {
  width: 16px;
  height: 16px;
}

/* @section Member Feed -- sizing now comes from .member-feed-row-grid above; this is just
   the column itself. */
/* Pairs the "Feed" heading with the profile owner's own "Import posts" link (printed
   by at_member_fields_feed_shortcode() itself, not front-page.php, since the owner
   check has to match whichever user_id the shortcode is actually rendering) -- same
   row pattern as .certifications-heading-row/.owned-gear-heading-row, with the bottom
   margin that used to live on .member-feed-heading moved up onto the row instead. */
.member-feed-heading-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--ds-space-sm);
  flex-wrap: wrap;
  margin: 0 0 var(--ds-space-md) 0;
}
.member-feed-heading {
  font-size: var(--ds-text-lg);
  font-weight: var(--ds-weight-semibold);
  color: var(--ds-color-ink);
  margin: 0;
}
.feed-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ds-space-xs);
  min-height: 44px;
  margin-bottom: var(--ds-space-lg);
  box-sizing: border-box;
}
.feed-filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: inherit;
  font-size: var(--ds-text-sm);
  font-weight: var(--ds-weight-medium);
  color: var(--ds-color-ink);
  background: var(--ds-color-surface);
  border: 2px solid var(--ds-color-ink);
  border-radius: var(--ds-radius-pill);
  padding: 6px 16px;
  cursor: pointer;
}
.feed-filter-icon {
  display: inline-flex;
  flex: none;
  color: inherit;
}
.feed-filter-icon svg,
.feed-filter-icon .brand-icon-img {
  width: 15px;
  height: 15px;
  display: block;
}
/* Each filter's border + label (and its icon, via color: inherit above)
   take on that source's own brand color, so the whole pill reads as that
   brand at rest — not just the icon inside it. Same colors as the
   matching .feed-tag-* pill in the list below and the Find Me Elsewhere
   links, so a color means the same thing everywhere on the page. */
.feed-filter-thread {
  border-color: var(--ds-color-mat);
  color: var(--ds-color-mat);
}
.feed-filter-story {
  border-color: var(--ds-color-kapton-deep);
  color: var(--ds-color-kapton-deep);
}
/* Substack's own public brand orange, same way Bluesky/Mastodon below use theirs. */
.feed-filter-substack {
  border-color: #ff6719;
  color: #ff6719;
}
.feed-filter-metafilter {
  border-color: #065a8f;
  color: #065a8f;
}
.feed-filter-bluesky {
  border-color: #1185fe;
  color: #1185fe;
}
.feed-filter-mastodon {
  border-color: #6364ff;
  color: #6364ff;
}
/* Reddit's own tag brand color (same as .feed-tag-reddit below), added with the rest
   of the Reddit import feature but never given its own filter-chip rule -- every
   other source got one here, so this one rendered as a plain unstyled outline. */
.feed-filter-reddit {
  border-color: #cc3d00;
  color: #cc3d00;
}
/* Facebook's own public brand blue, given its own rule from the start this time --
   see the comment above .feed-filter-reddit for why that one's rule came late. */
.feed-filter-facebook {
  border-color: #1877f2;
  color: #1877f2;
}
/* LinkedIn's own public brand blue -- same reasoning as Facebook's just above: a
   filter-chip rule given from the start, right alongside its tag-pill rule below. */
.feed-filter-linkedin {
  border-color: #0a66c2;
  color: #0a66c2;
}
/* X's current brand color is black (not the old Twitter blue, #1da1f2) -- same
   reasoning as Facebook/LinkedIn just above: a filter-chip rule given from the
   start, right alongside its tag-pill rule below. */
.feed-filter-twitter {
  border-color: #000;
  color: #000;
}
.feed-filter.is-active {
  background: var(--ds-color-ink);
  border-color: var(--ds-color-ink);
  color: var(--ds-color-on-dark);
}
.feed-filter-thread.is-active {
  background: var(--ds-color-mat);
  border-color: var(--ds-color-mat);
}
.feed-filter-story.is-active {
  background: var(--ds-color-kapton-deep);
  border-color: var(--ds-color-kapton-deep);
}
.feed-filter-substack.is-active {
  background: #ff6719;
  border-color: #ff6719;
}
.feed-filter-metafilter.is-active {
  background: #065a8f;
  border-color: #065a8f;
}
.feed-filter-bluesky.is-active {
  background: #1185fe;
  border-color: #1185fe;
}
.feed-filter-mastodon.is-active {
  background: #6364ff;
  border-color: #6364ff;
}
.feed-filter-reddit.is-active {
  background: #cc3d00;
  border-color: #cc3d00;
}
.feed-filter-facebook.is-active {
  background: #1877f2;
  border-color: #1877f2;
}
.feed-filter-linkedin.is-active {
  background: #0a66c2;
  border-color: #0a66c2;
}
.feed-filter-twitter.is-active {
  background: #000;
  border-color: #000;
}
.feed-filter.is-active .feed-filter-icon {
  color: inherit; /* on the solid-brand active pill, match the (white) label */
}
.feed-filter:focus-visible {
  outline: 2px solid var(--ds-color-mat);
  outline-offset: 2px;
}
.feed-item.is-hidden {
  display: none;
}
/* Tag pills inside each feed card — same brand colors as the filter chips
   above, so filtering by Bluesky and seeing a blue tag is the same color.
   .feed-tag itself (the shared base -- shape, padding, and a plain teal
   fallback) has to come BEFORE these per-platform overrides: same specificity
   either way (one class each), so whichever sits later in the file wins, and
   .feed-tag used to be the one placed later -- every tag below was silently
   never anything but that teal fallback. Moved here, right above them, so the
   cascade actually works the way the comment above always assumed it did. */
.feed-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--ds-text-xs);
  font-weight: var(--ds-weight-semibold);
  color: var(--ds-color-mat);
  background: var(--ds-color-mat-tint);
  border-radius: 4px;
  padding: 3px 9px;
}
.feed-tag-thread {
  color: var(--ds-color-mat);
  background: var(--ds-color-mat-tint);
}
.feed-tag-story {
  color: var(--ds-color-kapton-deep);
  background: var(--ds-color-kapton-tint);
}
/* Member Home Page's own "pending directory approval" notice (front-page.php) --
   shown only to the profile's owner (or a Super Admin) while appletechs-core's
   'atechs_approved' usermeta is 'pending'. Same amber notice color as
   .feed-tag-story above, just in banner form rather than a small pill. */
.at-pending-approval-notice {
  margin: var(--ds-space-md) 0 0;
  padding: var(--ds-space-sm) var(--ds-space-md);
  background: var(--ds-color-kapton-tint);
  color: var(--ds-color-kapton-deep);
  border-radius: var(--ds-radius-sm);
  font-size: var(--ds-text-sm);
}
.feed-tag-substack {
  color: #ff6719;
  background: rgba(255, 103, 25, 0.12);
}
.feed-tag-metafilter {
  color: #065a8f;
  background: rgba(27, 80, 140, 0.12);
}
.feed-tag-bluesky {
  color: #1185fe;
  background: rgba(17, 133, 254, 0.12);
}
.feed-tag-mastodon {
  color: #6364ff;
  background: rgba(99, 100, 255, 0.12);
}
.feed-tag-reddit {
  color: #cc3d00;
  background: rgba(255, 69, 0, 0.12);
}
.feed-tag-facebook {
  color: #1877f2;
  background: rgba(24, 119, 242, 0.12);
}
.feed-tag-linkedin {
  color: #0a66c2;
  background: rgba(10, 102, 194, 0.12);
}
.feed-tag-twitter {
  color: #000;
  background: rgba(0, 0, 0, 0.08);
}
.feed-tag-icon {
  display: inline-flex;
  flex: none;
}
.feed-tag-icon svg,
.feed-tag-icon .brand-icon-img {
  width: 13px;
  height: 13px;
  display: block;
}
.feed-tag-icon-img {
  width: 13px;
  height: 13px;
  border-radius: 3px;
  display: block;
  object-fit: cover;
}
.feed-list {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-sm);
}
.feed-item {
  /* Same padding, radius and shadow as every other card on this page (profile,
     activity, certifications, .elsewhere-card) -- this one was still on the smaller
     --ds-radius-sm with no shadow, which is what read as "inconsistent padding"
     against the Find Me Elsewhere box next to it even though the padding value
     itself (--ds-space-md) already matched. */
  background: var(--ds-color-surface);
  border: 1px solid var(--ds-color-line);
  border-radius: var(--ds-radius-md);
  box-shadow: var(--ds-shadow-card);
  padding: var(--ds-space-md);
}
/* Tag+time and (on a long-form item) the word-count badge share one row. The badge
   never wraps or shrinks (flex: none) and always stays pinned top-right; if the column
   gets too narrow for both to fit at full size, the tag+time side wraps its own two
   children onto their own lines instead (min-width: 0 lets it shrink below its content
   width) -- so the badge can never overlap the title below it, and never drops onto a
   full-width row of its own either, at any column width. */
.feed-item-head {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--ds-space-sm);
  margin-bottom: 6px;
}
.feed-item-longform-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex: none;
  gap: 2px;
  text-align: right;
  background: var(--ds-color-mat-tint);
  border-radius: var(--ds-radius-sm);
  padding: 5px 10px;
}
.feed-longform-label {
  font-size: var(--ds-text-xs);
  font-weight: var(--ds-weight-semibold);
  color: var(--ds-color-mat);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.feed-longform-meta {
  font-size: var(--ds-text-xs);
  color: var(--ds-color-ink-soft);
  white-space: nowrap;
}
.feed-item-title {
  margin: 0 0 4px;
}
.feed-item-title a {
  font-weight: var(--ds-weight-bold);
  font-size: var(--ds-text-base);
  color: var(--ds-color-ink);
  text-decoration: none;
}
.feed-item-title a:hover {
  text-decoration: underline;
}
.feed-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ds-space-sm);
  min-width: 0;
  flex: 1 1 auto;
}
.feed-item-time {
  font-size: var(--ds-text-xs);
  color: var(--ds-color-ink-soft);
}
/* A Story's assigned Category/ies, next to its "Story" tag and timestamp (see
   at_mf_get_stories()/at_member_fields_feed_shortcode() in the member-fields
   plugin) -- small neutral pills, same shape as .feed-tag's pill but
   deliberately not brand-colored like the source tags, so a Story with
   several categories doesn't read as several different platforms. */
.feed-item-categories {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}
.feed-item-category {
  font-size: var(--ds-text-xs);
  font-weight: var(--ds-weight-semibold);
  color: var(--ds-color-ink-soft);
  background: rgba(0, 0, 0, 0.06);
  border-radius: 4px;
  padding: 2px 8px;
}
/* Flags content pulled in from MetaFilter/Bluesky rather than written on
   Beachball Help itself -- italic + muted so it reads as a quiet aside next
   to the tag/time, not another competing label. */
.feed-item-imported {
  font-size: var(--ds-text-xs);
  color: var(--ds-color-ink-soft);
  font-style: italic;
}
.feed-item-body {
  font-size: var(--ds-text-base);
  line-height: var(--ds-line-body);
  color: var(--ds-color-ink);
  margin: 0 0 8px 0;
}
.feed-item-link {
  font-size: var(--ds-text-sm);
  font-weight: var(--ds-weight-semibold);
  color: var(--ds-color-mat);
}
.feed-item-link:hover {
  color: var(--ds-color-mat-dark);
  text-decoration: underline;
}
/* A member's own federated/open-feed item they've hidden from the public (atechs_filter_
   hidden_feed_items(), appletechs-core/includes/helpers.php) -- only ever rendered on their
   own view of this page (anywhere else, the item is dropped outright, never just hidden by
   CSS), so grayed out rather than removed, as a reminder it's there to un-hide later. Not
   .is-hidden (above) -- that's the unrelated feed-filter-by-category JS toggle. */
.feed-item.is-feed-item-hidden {
  opacity: 0.55;
}
.feed-item-hidden-note {
  font-size: var(--ds-text-xs);
  font-weight: var(--ds-weight-semibold);
  color: var(--ds-color-ink-soft);
  margin: 0 0 8px 0;
}
.feed-item-hide-form {
  display: inline-block;
  margin-left: var(--ds-space-sm);
}
.feed-item-hide-btn {
  font-size: var(--ds-text-sm);
  font-weight: var(--ds-weight-semibold);
  color: var(--ds-color-ink-soft);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}
.feed-item-hide-btn:hover {
  color: var(--ds-color-ink);
}
.feed-empty {
  font-size: var(--ds-text-sm);
  color: var(--ds-color-ink-soft);
  padding: var(--ds-space-md);
}

/* @section /edit-photo/ -- the front-end Photo & Banner page added in
   functions.php (at_member_theme_maybe_render_edit_photo()). Its content is
   [at_photo_banner_field]'s own markup (beachball-help-member-fields.php),
   shared with appletechs-core's main site, which styles the same ".atechs-*"
   class names via its own atechs.css. That stylesheet IS enqueued network-
   wide, including on this subsite (confirmed live) -- this copy just maps
   .atechs-btn/.atechs-btn-primary onto this theme's own look (--ds-* tokens)
   rather than appletechs-core's plain defaults, the same way the Connect
   button and "How you're connected" box elsewhere on this page do. */
.at-edit-photo-page {
  max-width: var(--ds-width-container);
  margin: 0 auto;
  padding: var(--ds-space-xl) var(--ds-space-md);
}
.at-edit-photo-hint {
  margin: 0 0 var(--ds-space-md);
}
.at-edit-photo-hint a {
  color: var(--ds-color-mat);
}
.atechs-notice {
  margin: 0 0 var(--ds-space-md);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: var(--ds-text-sm);
}
.atechs-notice-success {
  background: #e6f4ea;
  color: #1e4620;
}
.atechs-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: var(--ds-radius-pill, 999px);
  background: var(--ds-color-surface);
  color: var(--ds-color-ink);
  font: inherit;
  font-weight: var(--ds-weight-semibold);
  cursor: pointer;
  text-decoration: none;
}
.atechs-btn:hover {
  border-color: rgba(0, 0, 0, 0.32);
}
.atechs-btn:disabled {
  opacity: 0.5;
  cursor: default;
}
.atechs-btn-primary {
  border-color: transparent;
  background: var(--ds-color-mat);
  color: #fff;
}
.atechs-btn-primary:hover {
  background: var(--ds-color-mat-dark);
  border-color: transparent;
}
.at-edit-photo-page .description {
  font-size: var(--ds-text-sm);
  color: var(--ds-color-ink-soft);
}

/* /conferences/ -- the full, unlimited, grouped-by-conference list
   (at_member_theme_maybe_render_conferences(), functions.php), same page shell as
   /edit-photo/ above. Its content is [at_conferences]'s own 'group_by_conference="1"'
   markup (member-fields.php, appletechs-core): one white card (.conference-group) per
   conference -- every WordCamp edition together, every Macworld edition together, etc.
   -- sitting on the page's light-gray (--ds-color-paper, already the sitewide body
   background), its conference name as a bold, larger card heading
   (.conference-group-title), with that conference's editions listed underneath,
   divided by thin rules rather than each getting its own card. It's a public page (no
   OS-theme window chrome here, same as /edit-photo/), so it reads as clean regardless
   of whichever OS theme the Tech has picked for their own Member Home Page. */
.at-conferences-page {
  max-width: var(--ds-width-container);
  margin: 0 auto;
  padding: var(--ds-space-xl) var(--ds-space-md);
}
.at-conferences-hint {
  margin: 0 0 var(--ds-space-md);
}
.at-conferences-hint a {
  color: var(--ds-color-mat);
}
.conferences-empty {
  color: var(--ds-color-ink-soft);
}
.conferences-groups {
  margin-top: var(--ds-space-sm);
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-md);
}
.conference-group {
  background: var(--ds-color-surface);
  border: 1px solid var(--ds-color-line);
  border-radius: var(--ds-radius-md);
  box-shadow: var(--ds-shadow-card);
  padding: var(--ds-space-md);
}
.conference-group-title {
  margin: 0 0 var(--ds-space-sm);
  font-family: var(--ds-font-heading);
  font-size: var(--ds-text-xl);
  font-weight: var(--ds-weight-bold);
  color: var(--ds-color-ink);
}
.conference-group-editions {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-sm);
}
.conference-edition {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding-top: var(--ds-space-sm);
  border-top: 1px solid var(--ds-color-line);
}
.conference-group-editions .conference-edition:first-child {
  padding-top: 0;
  border-top: 0;
}
.conference-attendees {
  flex: 1 1 100%;
  margin: 0;
  font-size: var(--ds-text-xs);
  color: var(--ds-color-ink-soft);
}
.conference-attendees a {
  color: var(--ds-color-mat);
}
.conference-attendees a:hover {
  text-decoration: underline;
}

/* Single Story page (single.php) -- no sidebar at all (that's why there's no .story-page
   widget-area CSS here: with get_sidebar() never called, Search/Recent Posts/Recent
   Comments just never render), a narrow centered reading column rather than this theme's
   wide .bb-container, and a little extra line-height/font-size over the site's normal
   body copy (--ds-line-body is right for UI text, a bit tight for a page whose entire job
   is being read start to finish). */
/* Three columns: the Benches nav (reused from appletechs-core's own Benches pages --
   see .atechs-bench-page below), the Story itself at --ds-width-prose, and the
   network's most-upvoted long-form content. .atechs-bench-page is also the class
   appletechs-core's own atechs.css scopes its Benches-nav rules (.front-benches,
   .front-group and friends, .front-side-title) under -- putting it on this wrapper too
   means the Benches column here gets that exact same look for free, with no CSS of our
   own to keep in sync. */
.story-grid {
  display: grid;
  grid-template-columns: 200px minmax(0, var(--ds-width-prose)) 240px;
  justify-content: center;
  gap: var(--ds-space-xl);
  max-width: 1180px;
  margin: 0 auto;
  padding: var(--ds-space-lg) var(--ds-space-sm) var(--ds-space-xl);
  align-items: start;
}
.story-col-benches, .story-col-rail {
  position: sticky;
  top: var(--ds-space-lg);
}
/* Only the rail gets the smaller size -- its .atechs-top-stories-* rules (atechs.css)
   have no font-size of their own, so this is what sizes them down for a narrow side
   column. The Benches column must NOT get this: atechs.css's .front-group-list a etc.
   are already sized in em, relative to whatever font-size they inherit, to match the
   main site's own normal body size -- shrinking the inherited size here, as a shared
   rule on both columns used to, shrank every one of those em values along with it,
   which is why the Benches text came out visibly smaller than the real /b/ page. */
.story-col-rail {
  font-size: var(--ds-text-sm);
}
/* On the main site's own Benches pages, .front-side-title ("Benches") inherits a muted
   gray from that page's own context instead of the solid --ds-color-ink this theme's body
   uses everywhere else -- without this, the heading here renders near-black instead of
   matching that lighter tone. */
.story-col-benches .front-side-title {
  color: #757575;
}
.story-col-main {
  min-width: 0;
}
@media (max-width: 900px) {
  .story-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--ds-space-md);
  }
  .story-col-main {
    order: 1;
  }
  .story-col-benches {
    order: 2;
  }
  .story-col-rail {
    order: 3;
  }
  .story-col-benches, .story-col-rail {
    position: static;
  }
}
.story-featured-image {
  margin: 0 0 var(--ds-space-lg);
  border-radius: var(--ds-radius-md);
  overflow: hidden;
}
.story-featured-image img {
  display: block;
  width: 100%;
  height: auto;
}
.story-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 var(--ds-space-sm);
}
.story-category {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--ds-radius-pill);
  background: var(--ds-color-mat-tint);
  color: var(--ds-color-mat-dark);
  font-size: var(--ds-text-xs);
  font-weight: var(--ds-weight-semibold);
  text-decoration: none;
}
.story-category:hover {
  background: var(--ds-color-mat);
  color: #fff;
}
.story-title {
  font-family: var(--ds-font-heading);
  font-size: var(--ds-text-2xl);
  font-weight: var(--ds-weight-bold);
  line-height: var(--ds-line-title);
  margin: 0 0 var(--ds-space-md);
}
.story-byline {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: var(--ds-space-lg);
  margin-bottom: var(--ds-space-lg);
  border-bottom: 1px solid var(--ds-color-line);
}
.story-byline img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex: none;
  object-fit: cover;
}
.story-byline-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}
.story-byline-author {
  font-weight: var(--ds-weight-semibold);
  color: var(--ds-color-ink);
}
.story-byline-meta {
  font-size: var(--ds-text-sm);
  color: var(--ds-color-ink-soft);
}
/* single.php's "Edit this Story" link -- shown only to the signed-in author, right under the
   byline/border-bottom rule it sits beside, so it reads as a small admin action rather than
   part of the Story's own metadata. */
.story-edit-link {
  margin: calc(-1 * var(--ds-space-md)) 0 var(--ds-space-lg);
  font-size: var(--ds-text-sm);
}
.story-edit-link a {
  color: var(--ds-color-ink-soft);
  text-decoration: underline;
}
.story-edit-link a:hover {
  color: var(--ds-color-ink);
}
/* The content itself -- a little larger and looser than the site's normal --ds-text-base/
   --ds-line-body, since this is the one place on the whole site whose entire job is being
   read start to finish rather than scanned. */
.story-content {
  font-size: var(--ds-text-lg);
  line-height: 1.65;
  color: var(--ds-color-ink);
}
.story-content > * + * {
  margin-top: var(--ds-space-md);
}
.story-content h2, .story-content h3, .story-content h4 {
  font-family: var(--ds-font-heading);
  font-weight: var(--ds-weight-bold);
  line-height: var(--ds-line-snug);
  margin-top: var(--ds-space-lg);
}
.story-content a {
  color: var(--ds-color-mat);
}
.story-content blockquote {
  margin: var(--ds-space-md) 0;
  padding: 2px 0 2px var(--ds-space-md);
  border-left: 3px solid var(--ds-color-line);
  color: var(--ds-color-ink-soft);
  font-style: italic;
}
.story-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--ds-radius-sm);
}
.story-content ul, .story-content ol {
  list-style: revert;
  padding-left: 1.25em;
}
.story-content li + li {
  margin-top: 0.4em;
}
/* Comments -- this theme's own container around the normal comments_template() output
   (standard WordPress comment_form()/wp_list_comments() markup, not written by us), so a
   Story's discussion still reads as part of the same narrow column and typographic scale
   as the Story itself, rather than whatever the parent theme's own default comment
   styling (if any) would have given it. */
.story-comments {
  margin-top: var(--ds-space-xl);
  padding-top: var(--ds-space-lg);
  border-top: 1px solid var(--ds-color-line);
}
.story-comments #comments-title, .story-comments .comments-title {
  font-family: var(--ds-font-heading);
  font-size: var(--ds-text-xl);
  font-weight: var(--ds-weight-bold);
  margin: 0 0 var(--ds-space-md);
}
.story-comments .comment-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.story-comments .comment-list .children {
  list-style: none;
  margin: var(--ds-space-md) 0 0 var(--ds-space-md);
  padding-left: var(--ds-space-md);
  border-left: 1px solid var(--ds-color-line);
}
.story-comments .comment {
  padding: var(--ds-space-md) 0;
  border-bottom: 1px solid var(--ds-color-line);
}
.story-comments .comment-author {
  font-weight: var(--ds-weight-semibold);
  font-style: normal;
}
.story-comments .comment-author img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 8px;
}
.story-comments .comment-metadata {
  font-size: var(--ds-text-xs);
  color: var(--ds-color-ink-soft);
}
.story-comments .comment-content p {
  margin: 6px 0 0;
  line-height: var(--ds-line-body);
}
.story-comments .comment-reply-title {
  font-family: var(--ds-font-heading);
  font-size: var(--ds-text-lg);
  font-weight: var(--ds-weight-bold);
  margin: 0 0 var(--ds-space-sm);
}
.story-comments .comment-notes, .story-comments .logged-in-as {
  font-size: var(--ds-text-sm);
  color: var(--ds-color-ink-soft);
  margin: 0 0 var(--ds-space-sm);
}
.story-comments .comment-form input[type="text"], .story-comments .comment-form input[type="email"], .story-comments .comment-form input[type="url"], .story-comments .comment-form textarea {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: var(--ds-radius-sm);
  font: inherit;
  margin: 4px 0 var(--ds-space-sm);
}
.story-comments .comment-form textarea {
  min-height: 120px;
}
.story-comments .form-submit input[type="submit"] {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: var(--ds-radius-pill);
  background: var(--ds-color-mat);
  color: #fff;
  font: inherit;
  font-weight: var(--ds-weight-semibold);
  cursor: pointer;
}
.story-comments .form-submit input[type="submit"]:hover {
  background: var(--ds-color-mat-dark);
}
@media (max-width: 560px) {
  .story-title { font-size: var(--ds-text-xl); }
  .story-content { font-size: var(--ds-text-base); }
}
