/* Kinetic Cobalt Light: shared prose colors and compact author profile. */
body.author-storefront #main-content {
   width: 100%;
   max-width: none;
   margin: 0;
   padding: 0;
   background: #f8fafc
}

.author-storefront .author-page {
   max-width: 1280px;
   margin: auto;
   padding: 24px 32px 64px;
   font: 14px/1.8 var(--cg-font-sans, "Inter", system-ui, sans-serif);
   color: #334155
}

.author-storefront .author-page a {
   color: inherit;
   text-decoration: none
}

.author-storefront .author-page__breadcrumb {
   display: flex;
   flex-wrap: wrap;
   gap: 12px;
   font: 12px/1.7 var(--cg-font-sans, "Inter", system-ui, sans-serif);
   color: #64748b;
   margin-bottom: 28px
}

.author-storefront .author-page__hero {
   display: grid;
   grid-template-columns: 180px minmax(0, 1fr);
   gap: 32px;
   padding: 40px;
   background: linear-gradient(120deg, #fff 55%, #eff6ff);
   border: 1px solid #e2e8f0;
   border-radius: 8px;
   margin-bottom: 40px;
   align-items: start
}

/* A definite frame height keeps percentage image sizing independent of the upload.
   scale-down preserves the entire image without enlarging low-resolution uploads. */
.author-storefront .author-page__portrait {
   box-sizing: border-box;
   display: grid;
   place-items: center;
   width: 180px;
   height: 225px;
   border: 2px solid #bfdbfe;
   border-radius: 8px;
   overflow: hidden;
   background: #eff6ff
}

.author-storefront .author-page__portrait img {
   display: block;
   width: 100%;
   height: 100%;
   min-width: 0;
   min-height: 0;
   object-fit: cover;
   object-position: center;
   transform: none
}

.author-storefront .author-page__portrait-empty {
   display: grid;
   place-items: center;
   height: 100%;
   font: 700 48px var(--cg-font-sans, "Inter", system-ui, sans-serif);
   color: #0052cc
}

.author-storefront .author-page .eyebrow {
   font: 600 12px/1.6 var(--cg-font-sans, "Inter", system-ui, sans-serif);
   letter-spacing: .025em;
   color: #0052cc;
   margin: 0 0 10px;
   text-transform: uppercase
}

body.author-storefront:has(#main-content) #main-content h1 {
   font: 700 44px/1.2 var(--cg-font-sans, "Inter", system-ui, sans-serif);
   letter-spacing: -.025em;
   color: #0f172a;
   margin: 0 0 12px;
   text-transform: none;
   text-align: left
}

.author-storefront .author-page__position {
   color: #0052cc;
   font-weight: 500;
   margin: 0 0 16px
}

.author-storefront .author-page__summary {
   max-width: 85ch;
   color: #64748b;
   margin: 0 0 20px
}

.author-storefront .author-page__identity {
   display: flex;
   flex-direction: column;
   min-width: 0
}

.author-storefront .author-page__stats {
   order: 2;
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
   gap: 16px;
   margin: 28px 0 0;
   padding-top: 24px;
   border-top: 1px solid #e2e8f0
}

.author-storefront .author-page__stats>div {
   padding: 16px;
   background: #f8fafc;
   border: 1px solid #e2e8f0;
   border-radius: 4px
}

.author-storefront .author-page__stats dt {
   font: 12px/1.6 var(--cg-font-sans, "Inter", system-ui, sans-serif);
   color: #64748b;
   text-transform: uppercase
}

.author-storefront .author-page__stats dd {
   font: 600 23px/1.5 var(--cg-font-sans, "Inter", system-ui, sans-serif);
   color: #0f172a;
   margin: 8px 0 0
}

.author-storefront .author-page__links {
   display: flex;
   gap: 8px;
   flex-wrap: wrap;
   margin-bottom: 16px
}

.author-storefront .author-page__links a {
   width: 44px;
   height: 40px;
   display: grid;
   place-items: center;
   border: 1px solid #e2e8f0;
   background: #eff6ff;
   border-radius: 4px;
   color: #0052cc
}

.author-storefront .author-page__links svg {
   width: 20px;
   height: 20px;
   fill: none;
   stroke: currentColor;
   stroke-width: 1.6
}

.author-storefront .author-page__links .bi {
   font-size: 20px;
   line-height: 1
}

.author-storefront .author-page__anchors {
   display: flex;
   flex-wrap: wrap;
   gap: 12px
}

.author-storefront .author-page__anchors a {
   padding: 10px 16px;
   background: white;
   border: 1px solid #cbd5e1;
   border-radius: 4px;
   font-size: 12px
}

.author-storefront .author-page__anchors a:first-child {
   color: white;
   background: #0052cc;
   border-color: #0052cc
}

.author-storefront .author-page__about {
   padding: 40px;
   background: white;
   border: 1px solid #e2e8f0;
   border-radius: 8px;
   margin-bottom: 40px
}

.author-storefront .author-page__about>header {
   padding-bottom: 20px;
   border-bottom: 1px solid #e2e8f0;
   margin-bottom: 28px
}

body.author-storefront:has(#main-content) #main-content h2 {
   font: 600 26px/1.4 var(--cg-font-sans, "Inter", system-ui, sans-serif);
   color: #0f172a;
   letter-spacing: -.015em;
   margin: 0 0 12px;
   text-transform: none
}

body.author-storefront:has(#main-content) #main-content h3 {
   font: 600 20px/1.5 var(--cg-font-sans, "Inter", system-ui, sans-serif);
   color: #0f172a;
   margin: 24px 0 12px;
   text-transform: none
}

.author-storefront .author-biography {
   font-size: 15px;
   line-height: 1.9;
   overflow-wrap: anywhere
}

.author-storefront .author-biography p {
   margin: 0 0 18px
}

.author-storefront .author-biography :is(h2, h3, h4),
.author-storefront [id] {
   scroll-margin-top: 110px
}

.author-storefront .author-biography :is(ul, ol) {
   padding-left: 24px;
   margin: 16px 0
}

.author-storefront .author-biography blockquote {
   padding: 24px;
   background: #eff6ff;
   border-left: 3px solid #0052cc;
   margin: 24px 0;
   border-radius: 4px
}

.author-storefront .author-biography img {
   max-width: 100%;
   height: auto;
   border-radius: 4px
}

.author-storefront .author-biography :is(pre, table) {
   display: block;
   overflow: auto;
   max-width: 100%
}

.author-storefront .author-biography :is(td, th) {
   padding: 12px;
   border: 1px solid #e2e8f0
}

.author-storefront .author-biography a {
   color: #0052cc;
   text-decoration: underline
}

.author-storefront .author-page__section {
   margin: 40px 0
}

.author-storefront .author-page__section-head {
   display: flex;
   align-items: center;
   gap: 16px;
   margin-bottom: 20px
}

.author-storefront .author-page__section-head>div:first-child {
   flex: 1
}

.author-storefront .author-page__section-head>span {
   font: 12px var(--cg-font-sans, "Inter", system-ui, sans-serif);
   color: #64748b
}

.author-storefront .author-track-controls {
   display: flex;
   gap: 8px
}

.author-storefront .author-track-controls[hidden] {
   display: none
}

.author-storefront .author-track-controls button {
   width: 36px;
   height: 36px;
   border: 1px solid #e2e8f0;
   background: white;
   border-radius: 4px;
   color: #0052cc
}

.author-storefront .author-track-controls button:disabled {
   opacity: .4
}

.author-storefront :is(.author-post-grid, .author-product-grid) {
   display: grid;
   grid-auto-flow: column;
   grid-auto-columns: calc((100% - 72px)/4);
   gap: 24px;
   overflow-x: auto;
   scroll-snap-type: x proximity;
   padding: 4px 2px 16px
}

.author-storefront :is(.author-post-card, .author-product-card) {
   min-width: 0;
   background: white;
   border: 1px solid #e2e8f0;
   border-radius: 8px;
   overflow: hidden;
   scroll-snap-align: start
}

.author-storefront :is(.author-post-card__image, .author-product-card__image) {
   position: relative;
   display: grid;
   place-items: center;
   aspect-ratio: 16/10;
   background: #f1f5f9;
   overflow: hidden;
   color: #64748b;
   font-size: 12px
}

.author-storefront :is(.author-post-card__image, .author-product-card__image) img {
   position: absolute;
   inset: 0;
   display: block;
   width: 100%;
   height: 100%;
   object-fit: cover;
   object-position: center;
   transform: none
}

.author-storefront .author-product-card__image picture {
   position: absolute;
   inset: 0;
   display: block;
   width: 100%;
   height: 100%
}

.author-storefront .author-post-card {
   display: flex;
   flex-direction: column
}

.author-storefront .author-post-card>div {
   padding: 16px;
   display: flex;
   flex-direction: column;
   flex: 1
}

.author-storefront .author-post-card time {
   font: 12px var(--cg-font-sans, "Inter", system-ui, sans-serif);
   color: #64748b
}

body.author-storefront:has(#main-content) #main-content :is(.author-post-card, .author-product-card) h3 {
   font-size: 15px;
   line-height: 1.5;
   margin: 10px 0;
   display: -webkit-box;
   -webkit-line-clamp: 3;
   -webkit-box-orient: vertical;
   overflow: hidden
}

.author-storefront .author-post-card p {
   font-size: 12px;
   color: #64748b;
   display: -webkit-box;
   -webkit-line-clamp: 3;
   -webkit-box-orient: vertical;
   overflow: hidden;
   margin: 0 0 16px
}

.author-storefront .author-post-card .text-link {
   margin-top: auto;
   color: #0052cc;
   font: 12px var(--cg-font-sans, "Inter", system-ui, sans-serif)
}

.author-storefront .author-product-card>a {
   display: block;
   padding: 0 16px 16px
}

.author-storefront .author-product-card__image {
   margin: 0 -16px 16px
}

.author-storefront .author-product-card p {
   font: 12px var(--cg-font-sans, "Inter", system-ui, sans-serif);
   color: #64748b;
   margin: 0
}

.author-storefront .author-product-card strong {
   font: 600 18px var(--cg-font-sans, "Inter", system-ui, sans-serif);
   color: #0052cc
}

.author-storefront .author-product-card__action {
   display: flex;
   justify-content: space-between;
   padding: 8px 12px;
   border: 1px solid #e2e8f0;
   border-radius: 4px;
   margin-top: 16px;
   font-size: 12px
}

.author-storefront .author-page__empty {
   padding: 24px;
   background: white;
   border: 1px solid #e2e8f0;
   border-radius: 8px
}

.author-storefront :focus-visible {
   outline: 2px solid #0052cc;
   outline-offset: 3px
}

@media(max-width:1024px) {
   .author-storefront :is(.author-post-grid, .author-product-grid) {
      grid-auto-columns: calc((100% - 24px)/2)
   }

   .author-storefront .author-page__hero,
   .author-storefront .author-page__about {
      padding: 28px
   }
}

@media(max-width:640px) {
   .author-storefront .author-page {
      padding: 20px 16px 40px
   }

   .author-storefront .author-page__hero {
      grid-template-columns: 1fr;
      gap: 24px;
      padding: 24px
   }

   .author-storefront .author-page__portrait {
      width: 140px;
      height: 175px
   }

   .author-storefront .author-page__about {
      padding: 24px
   }

   body.author-storefront:has(#main-content) #main-content h1 {
      font-size: 32px
   }

   body.author-storefront:has(#main-content) #main-content h2 {
      font-size: 22px
   }

   .author-storefront :is(.author-post-grid, .author-product-grid) {
      grid-auto-columns: 85%
   }

   .author-storefront .author-page__section-head {
      flex-wrap: wrap
   }

   .author-storefront .author-page__stats {
      grid-template-columns: 1fr 1fr;
      gap: 8px
   }
}

@media(prefers-reduced-motion:reduce) {
   .author-storefront * {
      scroll-behavior: auto !important
   }
}

.author-storefront .author-page {
   font-size: 16px;
}

.author-storefront :is(.author-page__anchors a, .author-post-card p, .author-post-card .text-link, .author-product-card__action) {
   font-size: 14px;
   line-height: 1.6;
}

.author-storefront .author-product-card strong {
   font-variant-numeric: tabular-nums;
}