@layer base {
  /* TOOLTIP */
  .tip {
    position: relative;
    display: inline;
    color: inherit;
    cursor: help;
    border-block-end: 1px dashed var(--text-muted);
  }
  .tip-box {
    position: absolute;
    inset-block-end: calc(100% + 8px);
    inset-inline-start: 50%;
    z-index: 100;
    inline-size: 240px;
    padding: 10px 13px;
    font-family: "DM Mono", monospace;
    font-size: 12px;
    font-weight: 300;
    line-height: 1.55;
    color: rgb(245 245 243);
    text-transform: none;
    letter-spacing: 0;
    white-space: normal;
    pointer-events: none;
    background: rgb(26 25 23);
    border-radius: 4px;
    opacity: 0;
    transform: translateX(-50%) translateY(4px);
    transition:
      opacity 0.15s ease,
      transform 0.15s ease;
  }
  .tip-box::after {
    position: absolute;
    inset-block-start: 100%;
    inset-inline-start: 50%;
    content: "";
    border: 5px solid transparent;
    border-block-start-color: rgb(26 25 23);
    transform: translateX(-50%);
  }
  .tip:hover .tip-box,
  .tip:focus .tip-box {
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
  }

  /* CARD */
  .card {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-block-size: 220px;
    border-block-end: 1px solid var(--border);
  }
  @media (max-width: 700px) {
    .card {
      grid-template-columns: 1fr;
    }
  }
  .vis-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    min-block-size: 180px;
    padding: 16px;
    overflow: hidden;
    background: var(--surface);
    border-inline-end: 1px solid var(--border);
  }
  .vis-panel canvas {
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 0;
    inline-size: 100%;
    block-size: 100%;
  }
  .vis-label {
    position: relative;
    z-index: 2;
    padding: 4px 8px;
    font-family: "DM Mono", monospace;
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    background: rgb(245 245 243 / 0.85);
    border-radius: 2px;
  }
  .content-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: center;
    padding: 28px 36px;
  }
  .content-panel h2 {
    font-size: 21px;
    font-weight: 800;
    line-height: 1.2;
  }
  .content-panel p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--text);
  }

  /* TAGS */
  .tag {
    display: inline-block;
    padding: 3px 8px;
    margin-block-end: 4px;
    margin-inline-end: 6px;
    font-family: "DM Mono", monospace;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 2px;
  }
  .tag-gmr {
    color: rgb(43 45 110);
    background: rgb(232 234 246);
  }
  .tag-resonance {
    color: rgb(106 27 154);
    background: rgb(243 229 245);
  }
  .tag-entropy {
    color: rgb(40 53 147);
    background: rgb(232 234 246);
  }
  .tag-attractor {
    color: rgb(21 101 192);
    background: rgb(227 242 253);
  }
  .tag-lyapunov {
    color: rgb(191 54 12);
    background: rgb(255 243 224);
  }
  .tag-quantum {
    color: rgb(69 39 160);
    background: rgb(237 231 246);
  }
  .tag-diffusion {
    color: rgb(27 94 32);
    background: rgb(232 245 233);
  }

  /* META GRID */
  .meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .meta-label {
    margin-block-end: 4px;
    font-family: "DM Mono", monospace;
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
  }
  .meta-value {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text);
  }

  /* FINDINGS GRID */
  .findings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-block-start: 1px solid var(--border);
  }
  @media (max-width: 800px) {
    .findings-grid {
      grid-template-columns: 1fr;
    }
  }
  .finding-cell {
    padding: 28px 32px;
    border-block-end: 1px solid var(--border);
    border-inline-end: 1px solid var(--border);
  }
  .finding-cell:nth-child(3n) {
    border-inline-end: none;
  }
  .finding-num {
    margin-block-end: 12px;
    font-family: "DM Mono", monospace;
    font-size: 28px;
    font-weight: 300;
    color: var(--accent);
  }
  .finding-title {
    margin-block-end: 10px;
    font-size: 15px;
    font-weight: 700;
  }
  .finding-body {
    font-size: 13px;
    line-height: 1.65;
    color: var(--text-muted);
  }

  /* ANNOUNCEMENT STRIP */
  .announce-strip {
    padding: 48px;
    background: var(--accent);
    border-block-end: 1px solid var(--border);
  }
  .announce-strip h2 {
    margin-block-end: 16px;
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 800;
    line-height: 1.2;
    color: rgb(255 255 255);
  }
  .announce-strip p {
    max-inline-size: 680px;
    margin-block-end: 14px;
    font-size: 15px;
    line-height: 1.7;
    color: rgb(255 255 255 / 0.75);
  }
  .announce-strip p:last-child {
    margin-block-end: 0;
  }
  .announce-strip .mono {
    margin-block-end: 20px;
    font-family: "DM Mono", monospace;
    font-size: 10px;
    color: rgb(255 255 255 / 0.45);
    text-transform: uppercase;
    letter-spacing: 0.2em;
  }

  /* TWO COL */
  .two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-block-end: 1px solid var(--border);
  }
  @media (max-width: 700px) {
    .two-col {
      grid-template-columns: 1fr;
    }
  }
  .two-col-panel {
    padding: 36px 40px;
    border-inline-end: 1px solid var(--border);
  }
  .two-col-panel:last-child {
    border-inline-end: none;
  }
  .two-col-panel h3 {
    margin-block-end: 14px;
    font-size: 17px;
    font-weight: 700;
  }
  .two-col-panel p {
    margin-block-end: 12px;
    font-size: 13px;
    line-height: 1.65;
  }

  /* AUTHOR */
  .author-strip {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 36px 48px;
    background: var(--surface);
    border-block-end: 1px solid var(--border);
  }
}
