/*
  gregshevchenko.com research article v1

  Shared static CSS extracted from the Agentic Workspace rollout page so new
  research pages do not increase page-local style debt. Keep broad component
  changes in the design SSOT before using this on more routes.
*/

/* note-ui-consistency: faq-table-meta-v1 */
      :root {
        color-scheme: light;
        --font-display: "Humans Serif Display", "Instrument Serif", ui-serif, serif;
        --font-body: "Humans Text", "Newsreader", ui-serif, serif;
        --font-ui: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        --font-mono: "Humans Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

        /* Back-compat vars used across page CSS */
        --sans: var(--font-ui);
        --body: var(--font-body);
        --serif: var(--font-display);
        --mono: var(--font-mono);
        --paper: #fafaf8;
        --panel: #eff3f1;
        --ink: #101820;
        --muted: #4c575c;
        --soft: #69706c;
        --line: rgba(16, 24, 32, 0.13);
        --accent: #0aa38f;
        --accent-dark: #08796d;
        --max: 720px;
        --article-max: 720px;
      }
      * { box-sizing: border-box; }
      html { background: var(--paper); scroll-behavior: smooth; }
      body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); text-rendering: geometricPrecision; }
      a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
      a:hover { color: var(--accent-dark); }
      img { display: block; max-width: 100%; }
      .site-header, main, .site-footer { width: min(var(--max), calc(100% - 36px)); margin: 0 auto; }
      .site-header { padding: 24px 0 0; position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 90%, white); backdrop-filter: blur(12px); }
      .nav { min-height: 44px; display: flex; align-items: center; gap: 18px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 0; font-family: var(--font-ui); }
      .brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; font-weight: 500; font-size: 14px; }
      .brand img { width: 28px; height: 28px; border-radius: 50%; }
      .nav-links { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 13px; }
      .nav-links a { text-decoration: none; }
      .nav-email {
        color: var(--ink);
        display: inline-flex;
        align-items: center;
        font-family: var(--font-ui, var(--sans));
        font-size: 14px;
        font-weight: 500;
        line-height: 1.2;
        letter-spacing: 0;
        text-decoration: underline;
        text-decoration-color: rgba(16, 24, 32, 0.28);
        text-decoration-thickness: 1px;
        text-underline-offset: 0.18em;
      }
      main { padding: 72px 0 40px; }
      article { max-width: var(--article-max); margin: 0 auto; }
      .eyebrow, .kicker, .meta, .pill, .ref-marker, .source-note, .footer-label { font-family: var(--font-mono); }
      .eyebrow { color: var(--soft); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
      h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.025em; }
      h1 { margin: 14px 0 18px; font-size: clamp(44px, 7vw, 68px); line-height: 0.96; }
      h2 { margin: 0 0 18px; font-size: clamp(30px, 4vw, 38px); line-height: 1.08; }
      h3 { margin: 0 0 8px; font-size: 23px; line-height: 1.14; }
      .accent { color: var(--accent); font-style: italic; }
      .lede { max-width: 680px; margin: 0 0 22px; color: var(--muted); font-size: clamp(18px, 2.2vw, 20px); line-height: 1.52; }
      .meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; color: var(--soft); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
      .pill { display: inline-flex; padding: 8px 10px; border: 1px solid var(--line); border-radius: 0; background: rgba(239, 243, 241, 0.72); font-size: 12px; color: var(--soft); }
      section { margin: 56px 0; padding-top: 32px; border-top: 1px solid var(--line); }
      p, li { font-size: 18px; line-height: 1.62; }
      p { margin: 0 0 20px; }
      ul, ol { padding-left: 1.1em; }
      li + li { margin-top: 10px; }
      .summary-card, .matrix, .source-item, .related-item, .faq-item { border: 1px solid var(--line); border-radius: 0; background: rgba(255,255,255,0.54); }
      .summary-card { padding: 22px; margin: 30px 0; background: var(--panel); }
      .matrix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; }
      .cell { padding: 20px; border-top: 1px solid var(--line); }
      .cell:nth-child(-n + 2) { border-top: 0; }
      .cell:nth-child(odd) { border-right: 1px solid var(--line); }
      .cell p { margin: 0; font-size: 18px; }
      .source-list, .related-list, .faq { display: grid; gap: 14px; }
      .source-item, .related-item, .faq-item { display: block; padding: 18px; text-decoration: none; }
      .source-item p, .related-item p, .faq-item p { font-size: 18px; margin: 6px 0 0; }
      .faq-item h3 { font-size: clamp(18px, 2vw, 21px); line-height: 1.2; }
      .faq-item p { font-size: 15.5px; line-height: 1.66; }
      .kicker { display: block; color: var(--soft); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
      .ref-marker { margin-left: 0.12em; font-size: 0.62em; line-height: 0; vertical-align: super; }
      .ref-marker a { color: var(--accent-dark); text-decoration: none; white-space: nowrap; }
      .ref-marker a::before { content: "["; }
      .ref-marker a::after { content: "]"; }
      .source-item:target { outline: 2px solid rgba(8, 121, 109, 0.28); outline-offset: 3px; }
      .site-footer { margin-top: 56px; padding: 22px 0 36px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 1.5fr); gap: 30px; font-family: var(--font-ui); color: var(--muted); }
      .footer-mark { width: 24px; height: 24px; border-radius: 7px; }
      .footer-identity { display: flex; gap: 10px; align-items: flex-start; }
      .footer-identity-text, .footer-links { display: grid; gap: 6px; }
      .footer-label { color: var(--soft); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
      .footer-row { display: grid; grid-template-columns: 90px 1fr; gap: 14px; align-items: start; }
      .footer-row + .footer-row { margin-top: 10px; }
      .footer-row nav { display: flex; flex-wrap: wrap; gap: 10px 18px; }
      @media (max-width: 720px) {
        .site-header, main, .site-footer { width: min(100% - 28px, var(--max)); }
        .site-header { position: static; }
        .nav { align-items: flex-start; flex-direction: column; }
        .nav-links { flex-wrap: wrap; }
        h1 { font-size: 56px; }
        .matrix { grid-template-columns: 1fr; }
        .cell, .cell:nth-child(odd) { border-right: 0; }
        .cell:nth-child(2) { border-top: 1px solid var(--line); }
        .site-footer { grid-template-columns: 1fr; }
        .footer-links { order: -1; }
        .footer-row { grid-template-columns: 1fr; gap: 8px; }
      }
/* note-ui-consistency: article-width-link-blocks-v1 */
      article h2 {
        font-size: clamp(28px, 3.6vw, 38px);
        line-height: 1.08;
      }

      article h3 {
        font-size: clamp(20px, 2.2vw, 23px);
        line-height: 1.14;
      }

      .hero .lede,
      article > .lede {
        max-width: 680px;
        font-size: clamp(18px, 1.65vw, 20px);
        line-height: 1.52;
      }

      .summary-card {
        padding: 18px 20px;
      }

      .summary-card p,
      .summary-card li {
        font-size: 16.5px;
        line-height: 1.62;
      }

      .source-item,
      .related-item,
      .faq-item {
        padding: 18px 18px 20px;
        background: rgba(239, 243, 241, 0.72);
      }

      .source-item p,
      .related-item p,
      .faq-item p {
        font-size: 15px;
        line-height: 1.68;
      }

      .source-item p + p,
      .related-item p + p {
        margin-top: 8px;
      }

      .source-item p:last-child,
      .related-item p:last-child {
        color: var(--muted);
      }

      @media (max-width: 720px) {
        article { max-width: 100%; }
      }
      /* end note-ui-consistency: article-width-link-blocks-v1 */
/* note-ui-consistency: faq-table-meta-v1 */
      .hero-meta {
        gap: 10px;
        margin-top: 24px;
      }

      .meta-card {
        padding: 12px 13px 13px;
        background: rgba(239, 243, 241, 0.52);
      }

      .meta-value {
        font-size: 13.5px;
        line-height: 1.52;
      }

      .hero .lede {
        max-width: 680px;
        font-size: clamp(18px, 1.65vw, 20px);
        line-height: 1.52;
      }

      .summary-card h2 {
        font-size: clamp(22px, 2.3vw, 26px);
        line-height: 1.08;
      }

      .summary-card p,
      .summary-card li {
        font-size: 16.5px;
        line-height: 1.62;
      }

      article h2 {
        font-size: clamp(28px, 3.6vw, 38px);
        line-height: 1.08;
      }

      article h3 {
        font-size: clamp(20px, 2.2vw, 23px);
        line-height: 1.14;
      }

      article :not(pre) > code {
        font-family: var(--font-mono, var(--mono, "Humans Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace));
        font-size: 0.86em;
        letter-spacing: -0.01em;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
        padding: 0 0.08em;
        background: rgba(16, 24, 32, 0.035);
      }

      article pre {
        max-width: 100%;
        margin: 20px 0 22px;
        padding: 16px 18px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        background: rgba(239, 243, 241, 0.72);
        border: 1px solid var(--line);
        border-radius: 8px;
        color: var(--ink);
        font-family: var(--font-mono, var(--mono, "Humans Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace));
        font-size: 13.5px;
        line-height: 1.58;
      }

      article pre code {
        display: block;
        min-width: max-content;
        padding: 0;
        background: transparent;
        color: inherit;
        font-family: inherit;
        font-size: inherit;
        line-height: inherit;
        letter-spacing: 0;
        white-space: pre;
      }

      .facts-table {
        border-collapse: separate;
        border-spacing: 0;
        table-layout: fixed;
        border-top: 1px solid var(--line);
        font-size: 16px;
      }

      .facts-table th,
      .facts-table td {
        border: 0;
        border-bottom: 1px solid var(--line);
        padding: 13px 16px 15px 0;
        text-align: left;
        vertical-align: top;
      }

      .facts-table th {
        background: transparent;
        color: var(--soft);
        font-family: var(--font-mono, var(--mono, "Humans Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace));
        font-size: 11px;
        font-weight: 500;
        letter-spacing: 0.08em;
        line-height: 1.5;
        text-transform: uppercase;
      }

      .facts-table th:first-child,
      .facts-table td:first-child {
        width: 21%;
      }

      .facts-table td:first-child code {
        font-size: 14.5px;
        line-height: 1.45;
      }

      article table:not(.facts-table) {
        width: 100%;
        margin: 18px 0 16px;
        border-collapse: separate;
        border-spacing: 0;
        border-top: 1px solid var(--line);
        font-size: 15.5px;
        line-height: 1.48;
      }

      article table:not(.facts-table) th,
      article table:not(.facts-table) td {
        padding: 12px 14px 13px 0;
        border: 0;
        border-bottom: 1px solid var(--line);
        text-align: left;
        vertical-align: top;
      }

      article table:not(.facts-table) th {
        color: var(--soft);
        font-family: var(--font-mono, var(--mono, "Humans Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace));
        font-size: 11px;
        font-weight: 500;
        letter-spacing: 0.08em;
        line-height: 1.5;
        text-transform: uppercase;
      }

      article table:not(.facts-table) code {
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
      }

      .source-list,
      .source-item,
      .source-item p {
        min-width: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
      }

      .source-item a {
        overflow-wrap: anywhere;
        word-break: break-word;
      }

      .faq {
        gap: 12px;
        margin-top: 20px;
      }

      .faq-item {
        padding: 16px 18px 18px;
        background: rgba(239, 243, 241, 0.52);
        border: 1px solid var(--line);
        border-left: 2px solid rgba(8, 121, 109, 0.24);
      }

      .faq-item h3 {
        margin: 0 0 8px;
        font-size: clamp(18px, 2vw, 21px);
        line-height: 1.2;
      }

      .faq-item p {
        font-size: 15.5px;
        line-height: 1.66;
      }

      @media (max-width: 820px) {
        .hero-meta {
          gap: 8px;
          margin-top: 20px;
        }

        .meta-card,
        .faq-item {
          padding: 14px 15px 16px;
        }

        .hero .lede {
          max-width: 100%;
          font-size: 18.5px;
          line-height: 1.5;
        }

        article h2 {
          font-size: clamp(27px, 8vw, 31px);
          line-height: 1.1;
        }

        article h3 {
          font-size: 21px;
          line-height: 1.16;
        }

        .facts-table,
        .facts-table thead,
        .facts-table tbody,
        .facts-table tr,
        .facts-table th,
        .facts-table td {
          display: block;
          width: 100%;
        }

        .facts-table {
          border-top: 0;
        }

        .facts-table thead {
          display: none;
        }

        .facts-table tr {
          padding: 14px 15px 16px;
          border: 1px solid var(--line);
          background: rgba(239, 243, 241, 0.48);
        }

        .facts-table tr + tr {
          margin-top: 10px;
        }

        .facts-table td {
          border: 0;
          padding: 0;
        }

        .facts-table td:first-child {
          width: 100%;
        }

        .facts-table td + td {
          margin-top: 10px;
        }

        .facts-table td::before {
          content: attr(data-label);
          display: block;
          margin-bottom: 4px;
          color: var(--soft);
          font-family: var(--font-mono, var(--mono, "Humans Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace));
          font-size: 10.5px;
          font-weight: 500;
          letter-spacing: 0.08em;
          line-height: 1.35;
          text-transform: uppercase;
        }

        .facts-table td:first-child code {
          font-size: 15px;
          overflow-wrap: anywhere;
          white-space: normal;
          word-break: break-word;
        }

        article pre {
          margin: 18px 0 20px;
          padding: 14px 15px;
          font-size: 13px;
          line-height: 1.55;
        }

        article table:not(.facts-table) {
          display: block;
          max-width: 100%;
          overflow-x: auto;
          -webkit-overflow-scrolling: touch;
          font-size: 14px;
        }

        article table:not(.facts-table) th,
        article table:not(.facts-table) td {
          min-width: 136px;
          padding: 11px 13px 12px 0;
        }
      }
      /* /note-ui-consistency */
/* footer-layout: v2 */
      .site-footer {
        margin: 28px auto 42px;
        padding: 18px 20px 20px;
        border: 1px solid var(--line);
        background: rgba(255, 253, 251, 0.72);
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        align-items: start;
        color: var(--muted);
        font-size: 13px;
      }

      .site-footer a {
        color: var(--ink);
      }

      .footer-identity {
        display: inline-flex;
        align-items: flex-start;
        gap: 10px;
        padding-top: 16px;
        border-top: 1px solid var(--line);
        order: 2;
      }

      .footer-identity-text {
        display: flex;
        flex-direction: column;
        gap: 2px;
        line-height: 1.25;
      }

      .footer-role {
        white-space: nowrap;
      }

      .footer-email {
        margin-top: 8px;
        display: inline-flex;
        align-items: center;
        width: max-content;
        font-family: var(--font-ui, var(--sans));
        font-weight: 500;
        font-size: 14px;
        line-height: 1.2;
        letter-spacing: 0;
        color: var(--ink);
        text-decoration: underline;
        text-decoration-color: rgba(16, 24, 32, 0.28);
        text-decoration-thickness: 1px;
        text-underline-offset: 0.18em;
      }

      .footer-email:hover,
      .footer-email:focus-visible {
        color: var(--accent-dark);
        text-decoration-color: currentColor;
      }

      .site-footer > span.footer-links {
        display: flex;
        flex-direction: column;
        gap: 14px;
        width: 100%;
        align-items: stretch;
        order: 1;
      }

      .footer-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        row-gap: 8px;
        align-items: baseline;
      }

      .footer-row + .footer-row {
        padding-top: 16px;
        border-top: 1px solid var(--line);
      }

      .footer-label {
        letter-spacing: 0.12em;
        text-transform: uppercase;
        font-size: 11px;
        color: rgba(16, 24, 32, 0.62);
      }

      .footer-internal,
      .footer-external {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 14px;
        align-items: flex-start;
        line-height: 1.45;
      }

      .footer-internal a,
      .footer-external a {
        text-decoration-color: rgba(16, 24, 32, 0.28);
      }

      .footer-divider {
        flex-basis: 100%;
        width: 100%;
        height: 0;
      }

      @media (min-width: 820px) {
        .site-footer {
          grid-template-columns: max-content minmax(0, 1fr);
          column-gap: 28px;
          row-gap: 18px;
          align-items: start;
        }

        .footer-identity {
          grid-column: 1;
          padding-top: 0;
          border-top: 0;
          order: 0;
        }

        .site-footer > span.footer-links {
          grid-column: 2;
          grid-row: 1 / span 2;
          width: 100%;
          justify-self: start;
          align-items: flex-start;
          order: 0;
        }

        .footer-row {
          grid-template-columns: 78px minmax(0, 1fr);
          column-gap: 14px;
          row-gap: 0;
          justify-items: start;
          width: 100%;
        }

        .footer-row + .footer-row {
          padding-top: 0;
          border-top: 0;
        }

        .footer-row--site {
          align-self: start;
        }

        .footer-row--elsewhere {
          align-self: start;
        }

        .footer-row .footer-label {
          grid-column: 1;
          justify-self: start;
        }

        .footer-row .footer-internal,
        .footer-row .footer-external {
          grid-column: 2;
          justify-content: flex-start;
          flex-wrap: wrap;
          gap: 10px 18px;
          min-width: 0;
          max-width: 100%;
        }
      }

      /* end footer-layout: v2 */

      /* nav-avatar-stack: v1 */
      .brand-avatar {
        position: relative;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        overflow: hidden;
        flex: 0 0 auto;
        perspective: 700px;
      }

      .brand-avatar-inner {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        transform-style: preserve-3d;
        transition: transform 420ms ease;
      }

      .brand:hover .brand-avatar-inner,
      .brand:focus-visible .brand-avatar-inner {
        transform: rotateY(180deg);
      }

      .brand-avatar img {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        backface-visibility: hidden;
      }

      .brand-avatar .brand-mark {
        transform: rotateY(180deg);
      }

      .nav-backdrop,
      .nav-toggle {
        display: none;
      }
      /* end nav-avatar-stack: v1 */

      /* sticky-nav: v1 */
      @media (min-width: 821px) {
        .site-header {
          position: sticky;
          top: -10px;
          z-index: 30;
          padding-top: 10px;
          padding-bottom: 12px;
          background: rgba(250, 250, 248, 0.88);
          backdrop-filter: blur(16px) saturate(1.05);
          -webkit-backdrop-filter: blur(16px) saturate(1.05);
        }

        .site-header .nav {
          min-height: 42px;
          gap: 14px;
          padding: 7px 10px;
          border: 1px solid rgba(16, 24, 32, 0.16);
          background: rgba(255, 253, 251, 0.9);
          backdrop-filter: blur(16px) saturate(1.05);
          -webkit-backdrop-filter: blur(16px) saturate(1.05);
          box-shadow: 0 12px 34px rgba(16, 24, 32, 0.06);
        }

        .site-header .brand {
          gap: 8px;
          font-size: 13.5px;
          line-height: 1.1;
        }

        .site-header .brand-avatar,
        .site-header .brand-avatar img {
          width: 30px;
          height: 30px;
        }

        .site-header .nav-links {
          gap: 14px;
          font-size: 13px;
        }

        .site-header .nav-email {
          font-size: 13.5px;
        }

        .site-header .nav-separator {
          margin: 0 1px;
        }
      }
      /* end sticky-nav: v1 */

      /* visual-rhythm: v1 */
      .hero {
        border-bottom: 0;
      }

      .answer-block {
        margin-top: clamp(30px, 5vw, 44px);
        padding-top: 0;
        border-top: 0;
      }

      .proof-strip {
        border-top: 0;
      }


      .hub-summary {
        list-style: none;
        counter-reset: hub-summary;
        padding-left: 20px;
      }

      .hub-summary li {
        position: relative;
        padding-left: 34px;
      }

      .hub-summary li::before {
        counter-increment: hub-summary;
        content: counter(hub-summary) ".";
        position: absolute;
        left: 0;
        top: 0.08em;
        color: var(--soft);
        font-family: var(--mono);
        font-size: 13px;
        font-weight: 500;
        letter-spacing: 0.02em;
        line-height: 1.5;
      }

      .external-domain {
        font-family: var(--sans);
        font-size: 0.72em;
        font-weight: 500;
        color: var(--accent-dark);
        white-space: nowrap;
      }

      .line-list .essay > .external-domain {
        grid-column: 2;
        margin-top: -8px;
        align-self: start;
        color: var(--accent-dark);
        font-size: 12px;
        line-height: 1.45;
      }
      /* end visual-rhythm: v1 */

      /* article-emphasis: semibold-body-v1 */
      article p strong,
      article li strong,
      article td strong {
        font-family: var(--body);
        font-weight: 600;
        color: #203238;
        letter-spacing: 0;
      }

      article p strong {
        text-decoration: none;
      }
      /* end article-emphasis: semibold-body-v1 */
