/* Outputs grid: 4 columns */
    .outputs-grid{
      list-style: none;
      padding: 0;
      margin: 14px 0 0;

      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 12px;
    }

    /* Hero: two columns */
    .hero-inner{
      display: grid;
      grid-template-columns: 1.6fr 1fr;
      gap: 14px;
      position: relative;
      z-index: 1;
    }

    @media (max-width: 900px){
      .hero-inner{ grid-template-columns: 1fr; }
    }

    /* Profile card */
    .profile-card{
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: rgba(255,255,255,.72);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      box-shadow: var(--shadow);
      padding: 14px;
      align-self: start;
    }

    .profile-head{
      display: flex;
      gap: 12px;
      align-items: center;
      margin-bottom: 10px;
    }

    .avatar{
      width: 44px;
      height: 44px;
      border-radius: 14px;
      border: 1px solid rgba(43,100,255,.22);
      background: rgba(255,255,255,.08);
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }

    .profile-name{ font-weight: 800; line-height: 1.2; }
    .profile-role{ font-size: 12.5px; color: var(--muted); margin-top: 2px; }

    .profile-body{ font-size: 13.5px; color: #1a2133; }
    .profile-body ul{ margin: 10px 0 0; padding-left: 18px; }
    .profile-body li{ margin: 6px 0; }

    .profile-links{
      display:flex;
      flex-wrap:wrap;
      gap: 8px;
      margin-top: 12px;
    }

    .profile-links a{
      text-decoration:none;
      font-size: 13px;
      border: 1px solid var(--line);
      border-radius: 999px;
      padding: 7px 10px;
      background: rgba(255,255,255,.75);
      box-shadow: 0 8px 20px rgba(18,26,40,.05);
    }

    .profile-links a:hover{
      border-color: rgba(43,100,255,.30);
      box-shadow: var(--shadow2);
    }

    /* outputs cards */
    .outputs-grid li{
      border: 1px solid var(--line);
      border-radius: var(--radius2);
      background: rgba(255,255,255,.75);
      box-shadow: var(--shadow);
      padding: 14px 12px;
      text-align: center;
    }

    .outputs-grid :is(a, .output-draft){
      text-decoration: none;
      color: var(--accent2);
      font-size: 14px;
      line-height: 1.4;
      display: inline-block;
    }

    .outputs-grid li:hover{
      box-shadow: var(--shadow2);
      border-color: rgba(43,100,255,.30);
      transform: translateY(-2px);
      transition: all .12s ease;
    }

    @media (max-width: 900px){
      .outputs-grid{ grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 520px){
      .outputs-grid{ grid-template-columns: 1fr; }
    }

    :root{
      --w: 980px;

      --bg0:#ffffff;
      --bg1:#fbfcff;

      --text:#111;
      --muted:#475069;

      --line: rgba(18, 26, 40, .10);
      --line2: rgba(18, 26, 40, .14);

      --card: rgba(255,255,255,.82);
      --glass: rgba(255,255,255,.62);

      --shadow: 0 10px 30px rgba(18, 26, 40, .06);
      --shadow2: 0 12px 34px rgba(18, 26, 40, .09);

      --radius: 16px;
      --radius2: 12px;

      --accent: #2b64ff;
      --accent2:#1b46c9;

      --focus: 0 0 0 4px rgba(43,100,255,.14);
    }

    * { box-sizing: border-box; }
    html,body{ height:100%; }

    body{
      margin:0;
      line-height:1.7;
      color:var(--text);

      background:
        radial-gradient(1100px 600px at 15% -8%, rgba(43,100,255,.18), transparent 60%),
        radial-gradient(900px 520px at 90% 8%, rgba(255,255,255,.45), transparent 55%),
        radial-gradient(1200px 720px at 85% 85%, rgba(43,100,255,.10), transparent 65%),
        linear-gradient(180deg, #ffffff, #f6f8ff 55%, #ffffff);

    }

    body:before{
      content:"";
      position:fixed;
      inset:0;
      pointer-events:none;
      opacity:.18;
      background-image:
        radial-gradient(circle at 10% 20%, rgba(255,255,255,.9), rgba(255,255,255,0) 30%),
        radial-gradient(circle at 30% 80%, rgba(255,255,255,.9), rgba(255,255,255,0) 28%),
        radial-gradient(circle at 80% 30%, rgba(255,255,255,.85), rgba(255,255,255,0) 26%),
        radial-gradient(circle at 60% 60%, rgba(255,255,255,.7), rgba(255,255,255,0) 28%),
        radial-gradient(circle at 90% 90%, rgba(255,255,255,.8), rgba(255,255,255,0) 22%);
      filter: blur(0.2px);
      mix-blend-mode: overlay;
    }

    a{ color: inherit; }
    a:hover{ color: var(--accent2); }

    .wrap{
      padding-block: 34px 44px;
      position:relative;
    }

    header{
      display:flex;
      flex-direction:column;
      justify-content:space-between;
      align-items:flex-start;
      gap:16px;
      padding: 8px 0 10px;
      position: relative;
      z-index: 1000;
    }

    .tags{
      display:flex;
      flex-wrap:wrap;
      gap:16px;
    }

    .tag{
      display:inline-flex;
      align-items:center;
      gap:8px;
      border:1px solid var(--line);
      background: rgba(255,255,255,.55);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      padding:6px 12px;
      border-radius:999px;
      font-size:13px;
      color: #1a2133;
      box-shadow: 0 6px 18px rgba(18,26,40,.05);
    }

    .pill{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      width:18px;height:18px;
      border-radius:999px;
      background: rgba(43,100,255,.14);
      color: var(--accent2);
      font-weight:700;
      font-size:12px;
      line-height:1;
    }

    .topnav{
      display:flex;
      align-items:flex-end;
      gap:20px;
      flex-wrap:wrap;
      justify-content:flex-start;
    }
    .orientation-entry{
      display:inline-flex;
      position:relative;
    }
    .orientation-entry.hint-active{
      padding-top:44px;
    }
    .orientation-hint{
      position:absolute;
      top:0;
      left:4px;
      z-index:2;
      width:max-content;
      max-width:min(260px, calc(100vw - 48px));
      padding:6px 10px;
      border:1px solid rgba(18, 26, 40, .18);
      border-radius:9px;
      background:#fff;
      box-shadow:0 6px 18px rgba(18, 26, 40, .14);
      color:#1a2133;
      font-size:12px;
      font-weight:600;
      line-height:1.45;
      opacity:0;
      transform:translateY(-4px);
      pointer-events:none;
      transition:opacity .18s ease, transform .18s ease;
    }
    .orientation-hint::after{
      content:"";
      position:absolute;
      left:22px;
      bottom:-6px;
      width:10px;
      height:10px;
      border-right:1px solid rgba(18, 26, 40, .18);
      border-bottom:1px solid rgba(18, 26, 40, .18);
      background:inherit;
      transform:rotate(45deg);
    }
    .orientation-hint.is-visible{
      opacity:1;
      transform:translateY(0);
    }
    .orientation-hint.is-dismissing{
      opacity:0;
      transform:translateY(-3px);
    }
    .hint-pointer{
      display:inline-block;
      will-change:transform;
      animation:hint-pointer-bounce .65s ease-in-out .4s infinite;
    }
    @keyframes hint-pointer-bounce{
      0%, 100%{
        transform:translateY(0);
      }
      50%{
        transform:translateY(4px);
      }
    }
    [data-theme="dark"] .orientation-hint{
      border-color:#42566d;
      background:#152238;
      box-shadow:0 8px 22px rgba(0, 5, 14, .45);
      color:#edf4ff;
    }
    [data-theme="dark"] .orientation-hint::after{
      border-color:#42566d;
    }
    .topnav a{
      text-decoration:none;
      font-size:13px;
      padding:8px 10px;
      border-radius:999px;
      border:1px solid var(--line);
      background: rgba(255,255,255,.42);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      color: #1a2133;
      opacity:.9;
    }
    .topnav a:hover{
      border-color: var(--line);
      background: rgba(255,255,255,.55);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
    }
    .topnav .orientation-link{
      border-color: rgba(43,100,255,.38);
      background: rgba(43,100,255,.12);
      color: var(--accent2);
      font-weight:700;
      opacity:1;
    }
    .topnav .orientation-link:hover{
      border-color: rgba(43,100,255,.52);
      background: rgba(43,100,255,.18);
    }
    .topnav .returning-nav-link{
      border-color: rgba(24,146,139,.38);
      background: rgba(24,146,139,.10);
      color: #116b67;
      font-weight:700;
      opacity:1;
    }
    .topnav .returning-nav-link:hover{
      border-color: rgba(24,146,139,.55);
      background: rgba(24,146,139,.16);
    }

    .hero{
      margin-top: 8px;
      border:1px solid var(--line);
      border-radius: calc(var(--radius) + 2px);
      background: linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,.45));
      box-shadow: var(--shadow);
      padding: 26px 18px;
      overflow:hidden;
      position:relative;
    }

    .hero:after{
      content:"";
      position:absolute;
      inset:-35% -25%;
      background:
        radial-gradient(900px 480px at 68% 38%, rgba(43,100,255,.22), transparent 62%),
        linear-gradient(120deg, transparent 32%, rgba(255,255,255,.70) 50%, transparent 64%);
      transform: rotate(-6deg);
      opacity:.7;
      pointer-events:none;
    }

    h1{
      margin:0 0 10px;
      font-size: 32px;
      letter-spacing: .02em;
      position:relative;
      z-index:1;
    }

    .lab-hero-image{
      display: block;
      width: 100%;
      height: auto;
      border-radius: 14px;
    }

    .visually-hidden{
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    .lead{
      margin:0;
      font-size:16px;
      color: #1c2336;
      position:relative;
      z-index:1;
      max-width: 46em;
    }

    .lead strong{
      color: #0f1627;
      border-bottom: 2px solid rgba(43,100,255,.20);
      padding-bottom: 1px;
    }

    .cta{
      display:flex;
      gap:10px;
      flex-wrap:wrap;
      margin-top: 16px;
      position:relative;
      z-index:1;
    }

    .btn{
      display:inline-flex;
      align-items:center;
      gap:10px;
      border-radius: 12px;
      padding: 10px 14px;
      text-decoration:none;
      font-size:14px;
      border:1px solid var(--line2);
      background: rgba(255,255,255,.78);
      box-shadow: var(--shadow);
      transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
      color: #121a2a;
      user-select:none;
    }
    .btn:hover{
      transform: translateY(-2px);
      box-shadow: var(--shadow2);
      border-color: rgba(43,100,255,.30);
    }
    .btn:active{
      transform: translateY(0px);
      box-shadow: var(--shadow);
    }
    .btn:focus{
      outline:none;
      box-shadow: var(--shadow), var(--focus);
    }

    .btn.primary{
      background: linear-gradient(180deg, rgba(43,100,255,.95), rgba(27,70,201,.95));
      border-color: rgba(43,100,255,.40);
      color: #fff;
    }
    .btn.primary:hover{
      border-color: rgba(255,255,255,.30);
    }

    .note{
      margin-top: 10px;
      color: var(--muted);
      font-size: 13px;
      position:relative;
      z-index:1;
    }

    section{ margin-top: 26px; }

    .returning-researchers{
      scroll-margin-top: 20px;
      padding: 20px;
      border: 1px solid rgba(24,146,139,.24);
      border-radius: calc(var(--radius) + 2px);
      background:
        radial-gradient(620px 240px at 96% 0%, rgba(43,100,255,.13), transparent 68%),
        linear-gradient(145deg, rgba(255,255,255,.88), rgba(235,250,249,.76));
      box-shadow: var(--shadow);
    }
    .returning-heading{
      display:flex;
      align-items:flex-end;
      justify-content:space-between;
      gap:20px;
      margin-bottom:16px;
    }
    .returning-heading h2{ margin-bottom:4px; }
    .returning-heading p{ margin:0; max-width:68ch; color:var(--muted); font-size:14px; }
    .returning-heading .returning-eyebrow{
      margin-bottom:2px;
      color:#116b67;
      font-size:12px;
      font-weight:800;
      letter-spacing:.06em;
      text-transform:uppercase;
    }
    .returning-all-link{
      flex:0 0 auto;
      color:var(--accent2);
      font-size:13px;
      font-weight:700;
      text-decoration:none;
    }
    .returning-all-link:hover{ text-decoration:underline; text-underline-offset:3px; }
    .returning-grid{
      display:grid;
      grid-template-columns:1.05fr 1fr .9fr;
      gap:12px;
    }
    .returning-card{
      min-width:0;
      padding:16px;
      border:1px solid var(--line);
      border-radius:var(--radius);
      background:rgba(255,255,255,.82);
      box-shadow:0 8px 24px rgba(18,26,40,.055);
    }
    .returning-card h3{ margin:0 0 7px; color:#111827; font-size:16px; }
    .returning-card p{ margin:0; color:var(--muted); font-size:13px; }
    .returning-card .returning-card-intro{ margin-bottom:12px; }
    .returning-update-list,
    .research-path-list{
      margin:0;
      padding:0;
      list-style:none;
    }
    .returning-update-list{ display:grid; gap:11px; }
    .returning-update-list li{
      display:grid;
      grid-template-columns:auto 1fr;
      gap:2px 7px;
      margin:0;
      padding-top:11px;
      border-top:1px solid var(--line);
    }
    .returning-update-list li:first-child{ padding-top:0; border-top:0; }
    .returning-update-list time{ color:var(--muted); font-size:11px; }
    .research-status{
      justify-self:start;
      padding:1px 6px;
      border:1px solid rgba(24,146,139,.28);
      border-radius:999px;
      background:rgba(24,146,139,.09);
      color:#116b67;
      font-size:10px;
      font-weight:800;
    }
    .returning-update-list a{
      grid-column:1 / -1;
      color:var(--accent2);
      font-size:13px;
      font-weight:700;
      line-height:1.45;
      text-decoration:none;
    }
    .returning-update-list a:hover{ text-decoration:underline; text-underline-offset:3px; }
    .returning-category{ grid-column:1 / -1; color:var(--muted); font-size:11px; }
    .research-path-list{
      counter-reset:research-path;
      display:grid;
      gap:7px;
    }
    .research-path-list li{ counter-increment:research-path; margin:0; }
    .research-path-list a{
      display:grid;
      grid-template-columns:28px 1fr;
      padding:7px 8px;
      border-radius:10px;
      color:#162136;
      text-decoration:none;
    }
    .research-path-list a::before{
      content:counter(research-path);
      grid-row:1 / 3;
      align-self:center;
      display:grid;
      place-items:center;
      width:22px;
      height:22px;
      border-radius:50%;
      background:rgba(43,100,255,.11);
      color:var(--accent2);
      font-size:11px;
      font-weight:900;
    }
    .research-path-list a:hover{ background:rgba(43,100,255,.07); }
    .research-path-list span{ font-size:13px; font-weight:800; }
    .research-path-list small{ color:var(--muted); font-size:11px; line-height:1.45; }
    .returning-actions{
      display:flex;
      flex-wrap:wrap;
      gap:8px;
      margin-top:14px;
    }
    .returning-actions .btn{ padding:8px 10px; font-size:12px; }
    .returning-card .returning-original-note{
      margin-top:14px;
      padding-top:12px;
      border-top:1px solid var(--line);
      font-size:11px;
      line-height:1.6;
    }
    #cosmology-modeling,
    #cosmology-observational{ scroll-margin-top:20px; }

    [data-theme="dark"] .topnav .returning-nav-link{
      border-color:#3d817e !important;
      background:rgba(24,146,139,.18) !important;
      color:#8de0da !important;
    }
    [data-theme="dark"] .returning-researchers{
      border-color:#2d5e62;
      background:
        radial-gradient(620px 240px at 96% 0%, rgba(43,100,255,.15), transparent 68%),
        linear-gradient(145deg, rgba(15,29,47,.96), rgba(11,35,40,.88));
    }
    [data-theme="dark"] .returning-card{
      border-color:var(--border-color);
      background:rgba(18,34,54,.84);
      color:var(--text-color);
    }
    [data-theme="dark"] .returning-heading .returning-eyebrow,
    [data-theme="dark"] .research-status{ color:#8de0da; }
    [data-theme="dark"] .research-status{
      border-color:#3d817e;
      background:rgba(24,146,139,.18);
    }
    [data-theme="dark"] .research-path-list a{ color:var(--text-color); }
    [data-theme="dark"] .research-path-list a:hover{ background:rgba(110,168,254,.09); }

    .returning-page .wrap{
      max-width:920px;
      margin-inline:auto;
      min-height:100%;
    }
    .returning-page main{ min-width:0; }
    .returning-page-nav{ margin-bottom:4px; }
    .returning-page-panel{ margin-top:8px; }
    .returning-page-panel .returning-heading h1{
      margin:0 0 4px;
      color:#111827;
      font-size:clamp(26px, 4vw, 38px);
      line-height:1.25;
    }
    .returning-page-panel .returning-card h2{
      margin:0 0 7px;
      color:#111827;
      font-size:16px;
    }
    .research-message-section{
      margin-top:18px;
      padding-inline:20px;
    }
    .research-message-section-heading{
      max-width:78ch;
      margin:0 0 12px;
    }
    .research-message-section-heading h2{
      margin:2px 0 5px;
      color:#111827;
      font-size:18px;
    }
    .research-message-section-heading > p:last-child{
      margin:0;
      color:var(--muted);
      font-size:13px;
      line-height:1.65;
    }
    .research-message-section-label{
      margin:0;
      color:#116b67;
      font-size:11px;
      font-weight:800;
      letter-spacing:.08em;
      text-transform:uppercase;
    }
    .research-message{
      overflow:hidden;
      border:1px solid rgba(43,100,255,.22);
      border-radius:calc(var(--radius) + 2px);
      background:rgba(255,255,255,.76);
      box-shadow:var(--shadow);
    }
    .research-message + .research-message{ margin-top:12px; }
    .research-message-archived{ border-color:var(--line2); }
    .research-message-archived .research-message-label{ color:var(--muted); }
    .research-message > summary{
      display:grid;
      grid-template-columns:1fr auto;
      gap:3px 18px;
      padding:18px 20px;
      cursor:pointer;
      list-style:none;
      user-select:none;
    }
    .research-message > summary::-webkit-details-marker{ display:none; }
    .research-message-label{
      color:#116b67;
      font-size:12px;
      font-weight:800;
      letter-spacing:.06em;
      text-transform:uppercase;
    }
    .research-message-meta{
      grid-column:1;
      display:flex;
      flex-wrap:wrap;
      gap:6px 12px;
      color:var(--muted);
      font-size:12px;
      font-weight:700;
    }
    .research-message-meta span::after{
      content:"";
      display:inline-block;
      width:3px;
      height:3px;
      margin-left:12px;
      border-radius:50%;
      background:currentColor;
      vertical-align:middle;
    }
    .research-message-title{
      grid-column:1;
      color:#111827;
      font-size:18px;
      font-weight:800;
      line-height:1.45;
    }
    .research-message-action{
      grid-column:2;
      grid-row:1 / 4;
      align-self:center;
      display:inline-flex;
      align-items:center;
      gap:7px;
      color:var(--accent2);
      font-size:12px;
      font-weight:800;
    }
    .research-message-action::after{ content:"＋"; font-size:18px; line-height:1; }
    .research-message[open] .research-message-action::after{ content:"−"; }
    .research-message-body{
      max-width:78ch;
      margin:0 auto;
      padding:22px 24px 26px;
      border-top:1px solid var(--line);
      color:#263044;
      font-size:14px;
      line-height:1.9;
    }
    .research-message-body p{ margin:0 0 1.15em; }
    .research-message-body h3{
      margin:0 0 1em;
      color:#111827;
      font-size:20px;
      line-height:1.5;
    }
    .research-message-highlight{
      padding:12px 14px;
      border-left:4px solid #18928b;
      border-radius:0 10px 10px 0;
      background:rgba(24,146,139,.08);
    }
    .research-message-signoff{
      display:grid;
      gap:4px;
      margin-top:24px;
      padding-top:16px;
      border-top:1px solid var(--line);
    }
    .research-message-signoff small{ color:var(--muted); font-size:12px; }
    [data-theme="dark"] .research-message{
      border-color:#375878;
      background:rgba(18,34,54,.84);
    }
    [data-theme="dark"] .research-message-archived{ border-color:#31475f; }
    [data-theme="dark"] .research-message-label{ color:#8de0da; }
    [data-theme="dark"] .research-message-section-label{ color:#8de0da; }
    [data-theme="dark"] .research-message-section-heading h2,
    [data-theme="dark"] .research-message-body h3{ color:var(--heading-color); }
    [data-theme="dark"] .research-message-title{ color:var(--heading-color); }
    [data-theme="dark"] .research-message-body{ color:var(--text-color); }
    [data-theme="dark"] .research-message-highlight{
      border-left-color:#65cfc8;
      background:rgba(24,146,139,.13);
    }

    @media (max-width:900px){
      .returning-grid{ grid-template-columns:1fr 1fr; }
      .returning-verification{ grid-column:1 / -1; }
    }
    @media (max-width:620px){
      .returning-researchers{ padding:15px 12px; }
      .research-message-section{ padding-inline:12px; }
      .returning-heading{ align-items:flex-start; flex-direction:column; gap:8px; }
      .returning-grid{ grid-template-columns:1fr; }
      .returning-verification{ grid-column:auto; }
      .research-message > summary{
        grid-template-columns:1fr;
        gap:4px;
        padding:15px 13px;
      }
      .research-message-title{ grid-column:1; font-size:16px; }
      .research-message-section-heading h2{ font-size:17px; }
      .research-message-body h3{ font-size:18px; }
      .research-message-action{
        grid-column:1;
        grid-row:auto;
        justify-self:start;
        margin-top:5px;
      }
      .research-message-body{
        padding:18px 14px 20px;
        font-size:13.5px;
        line-height:1.85;
      }
    }

    h2{
      margin: 0 0 10px;
      font-size: 20px;
      letter-spacing: .02em;
      color: #111827;
    }

    .cards{
      display:grid;
      grid-template-columns: 1fr;
      gap: 12px;
    }
    @media (min-width: 860px){
      .cards{ grid-template-columns: 1fr 1fr 1fr 1fr; }
    }

    .card{
      border:1px solid var(--line);
      border-radius: var(--radius);
      background: var(--card);
      box-shadow: var(--shadow);
      padding: 14px 14px 12px;
      min-height: 132px;
      position:relative;
      overflow:hidden;
    }
    .card:hover{
      border-color: rgba(43,100,255,.28);
      box-shadow: var(--shadow2);
    }

    .card .ico{
      width:34px; height:34px;
      border-radius: 12px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      border: 1px solid rgba(43,100,255,.18);
      background: rgba(43,100,255,.08);
      margin-bottom: 10px;
    }
    .card svg{ width:20px; height:20px; stroke: var(--accent2); }

    .card strong{
      display:block;
      font-size: 14px;
      margin-bottom: 6px;
      color:#111827;
    }
    .card p{
      margin:0;
      font-size: 12.8px;
      color: var(--muted);
    }

    .box{
      border:1px solid var(--line);
      border-radius: var(--radius);
      background: var(--glass);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      box-shadow: var(--shadow);
      padding: 16px;
    }

    .two{
      display:grid;
      grid-template-columns: 1fr;
      gap: 12px;
    }
    @media (min-width: 860px){
      .two{ grid-template-columns: 1fr 1fr; }
    }

    .muted{ color: var(--muted); font-size: 14px; }
    .small{ font-size: 12px; }

    ul{ margin: 10px 0 0; padding-left: 18px; }
    li{ margin: 6px 0; }

    .outputs a{
      text-decoration: none;
      color: var(--accent2);
      border-bottom: 1px solid rgba(43,100,255,.20);
    }
    .outputs a:hover{
      border-bottom-color: rgba(43,100,255,.60);
    }

    footer{
      margin-top: 36px;
      padding-top: 16px;
      border-top: 1px solid rgba(18,26,40,.10);
      display:flex;
      justify-content:space-between;
      flex-wrap:wrap;
      gap:10px;
      color: var(--muted);
      font-size: 13px;
    }

    .kbd{
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
      font-size: 12px;
      border:1px solid rgba(18,26,40,.14);
      border-bottom-width:2px;
      padding:2px 6px;
      border-radius: 8px;
      background: rgba(255,255,255,.6);
    }

    .avatar img{
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    /* --- fold --- */
    details.fold{
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: rgba(255,255,255,.72);
      box-shadow: var(--shadow);
      padding: 12px 14px;
      margin-top: 12px;
    }
    details.fold > summary{
      cursor: pointer;
      list-style: none;
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-weight: 800;
      color:#111827;
      user-select: none;
      font-size: 18px;
      width: fit-content;
      margin: 0 auto;
    }
    details.fold > summary::-webkit-details-marker{ display:none; }
    details.fold > summary::before{
      content: "▶";
      font-size: 20px;
      color: var(--accent2);
      transition: transform .18s ease;
    }
    details.fold[open] > summary::before{
      content: "▼";
    }
    details.fold .fold-body{ margin-top: 10px; }

    #essays a[id^="essay"]:focus{
      outline: 3px solid var(--accent);
      outline-offset: 4px;
      border-radius: 8px;
    }

    /* Cosmology: second-level study groups */
    .cosmos-fold-body{
      display: grid;
      gap: 10px;
    }
    .cosmos-fold > summary{ flex-wrap: wrap; }
    .cosmos-media-link{
      margin-left: 2px;
      padding: 2px 7px;
      border: 1px solid var(--accent2);
      border-radius: 4px;
      color: var(--accent2);
      font-size: .8em;
      font-weight: 600;
      text-decoration: none;
    }
    details.cosmos-study{
      --cosmos-study-accent: #35c86f;
      overflow: hidden;
      border: 1px solid var(--line);
      border-left: 4px solid var(--cosmos-study-accent);
      border-radius: var(--radius2);
      background: rgba(255,255,255,.48);
    }
    details.cosmos-study--modeling{ --cosmos-study-accent: #3d8cff; }
    details.cosmos-study--observational{ --cosmos-study-accent: #8d5cf6; }
    details.cosmos-study > summary{
      display: flex;
      align-items: center;
      gap: 12px;
      min-height: 62px;
      padding: 12px 16px;
      cursor: pointer;
      list-style: none;
      color: var(--text);
      font-weight: 800;
      line-height: 1.45;
    }
    details.cosmos-study > summary::-webkit-details-marker{ display: none; }
    details.cosmos-study > summary::after{
      content: "›";
      margin-left: auto;
      color: var(--cosmos-study-accent);
      font-size: 28px;
      line-height: 1;
      transform: rotate(0deg);
      transition: transform .18s ease;
    }
    details.cosmos-study[open] > summary::after{ transform: rotate(90deg); }
    .cosmos-study-index{
      display: inline-grid;
      flex: 0 0 34px;
      width: 34px;
      height: 34px;
      place-items: center;
      border-radius: 50%;
      background: var(--cosmos-study-accent);
      color: #071526;
      font-size: 13px;
      font-weight: 900;
    }
    .cosmos-study-title{ color: var(--cosmos-study-accent); }
    .cosmos-study-body{
      padding: 0 14px 14px;
      border-top: 1px solid var(--line);
    }
    .cosmos-study-description{
      margin: 12px 2px 0;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.7;
    }
    .cosmos-study-body .box.outputs{
      padding-inline: 0;
      border: 0;
      background: transparent;
      box-shadow: none;
    }

    @media (max-width: 520px){
      .cosmos-fold > summary{
        align-items: flex-start;
        justify-content: flex-start;
      }
      .cosmos-fold-title{
        flex: 1 1 calc(100% - 36px);
        min-width: 0;
      }
      .cosmos-media-link{
        margin-left: 30px;
        font-size: 12px;
      }
      details.cosmos-study > summary{
        align-items: flex-start;
        gap: 10px;
        min-height: 56px;
        padding: 11px 10px;
        font-size: 14px;
      }
      details.cosmos-study > summary::after{
        margin-top: 2px;
        font-size: 24px;
      }
      .cosmos-study-index{
        flex-basis: 30px;
        width: 30px;
        height: 30px;
        font-size: 11px;
      }
      .cosmos-study-body{ padding: 0 8px 10px; }
      .cosmos-study-description{ font-size: 13px; }
    }

    /* Tag Tooltip */
    .tags .tag.tooltip{
      position: relative;
      cursor: pointer;
    }

    .tags .tag.tooltip.hover-active,
    .tags .tag.tooltip.active{
      z-index: 10000;
    }

    .tags .tag.tooltip .tip{
      position: absolute;
      left: 50%;
      top: calc(100% + 10px);
      transform: translateX(-50%) translateY(0);

      width: 320px;
      max-width: min(80vw, 360px);

      background: rgba(30,30,30,.85);
      color: #fff;
      padding: 10px 12px;
      border-radius: 10px;

      font-size: 13px;
      line-height: 1.5;
      box-shadow: 0 10px 25px rgba(0,0,0,.25);

      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity .18s ease, transform .18s ease, visibility .18s ease;

      z-index: 9999;

      writing-mode: horizontal-tb;
      white-space: normal;
      overflow-wrap: break-word;
    }
  

    @media (hover:hover) and (pointer:fine){
      .tags .tag.tooltip.hover-active .tip,
      .tags .tag.tooltip:focus-within .tip{
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(4px);
      }

      .tags .tag.tooltip .tip::before{
        content:"";
        position:absolute;
        top:-6px;
        left:50%;
        transform: translateX(-50%);
        border-width: 6px;
        border-style: solid;
        border-color: transparent transparent rgba(30,30,30,.96) transparent;
      }
    }

    body.is-mobile .tags .tag.tooltip{ position: static; }
    body.is-mobile .tags .tag.tooltip .tip{
      position: fixed;
      left: 12px;
      right: 12px;
      bottom: -15px;
      top: auto;

      width: calc(100vw - 24px);
      max-width: none;

      padding: 14px 16px;
      border-radius: 16px;
      font-size: 14px;
      line-height: 1.6;

      transform: translateY(10px);
    }
    body.is-mobile .tags .tag.tooltip .tip::before{ display:none; }
    body.is-mobile .tags .tag.tooltip.active .tip{
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transform: translateY(0);
    }
    .philosophy-hero {
  margin-top: 14px;
  margin-bottom: 18px;
  font-size: 0.9rem;
  line-height: 1.9;
  color: #666;
  font-style: italic;
  letter-spacing: 0.04em;
}

.outputs-grid li :is(a, .output-draft) {
  display: block;      
  text-align: center;  
}

.face-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 8px;   
}

.assistant-card {
  margin-top: 12px;
  padding: 10px 12px;              
  border: 1px solid var(--line);   
  border-radius: var(--radius2);   
  background: var(--card);         
  box-shadow: var(--shadow);       
}

.assistant-card h3 {
  font-size: 0.95rem;
  margin: 0 0 4px 0;
}

.assistant-card p {
  font-size: 0.8rem;
  margin: 0;
  line-height: 1.4;
}

.assistant-button {
  margin-top: 8px;
  padding: 6px 12px;
  font-size: 0.9rem;
}

/* Contactタイトル */

.collab-title{
    display:flex;
    align-items:center;
    gap:16px;
    flex-wrap:wrap;
}

.language-flags{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
    font-size:20px;
    line-height:1;
}

#language-flags img.emoji{
    width:20px;
    height:20px;
    vertical-align:middle;
    margin-right:4px;
}

.research-identifiers-title {
  margin-top: 12px;
  color: #555;
  font-size: .9em;
}

.research-identifiers {
  display: grid;
  grid-template-columns: minmax(105px, 1fr) minmax(140px, 1.35fr);
  align-items: center;
  column-gap: 25px;
  row-gap: 13px;
  margin-top: 13px;
}

.research-identifiers a {
  display: flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
}

.research-identifiers > a:nth-of-type(1) { grid-area: 1 / 1; }
.research-identifiers > a:nth-of-type(2) { grid-area: 1 / 2; }
.research-identifiers > a:nth-of-type(3) { grid-area: 2 / 1; }
.research-identifiers > a:nth-of-type(4) { grid-area: 2 / 2; }
.research-identifiers > a:nth-of-type(5) { grid-area: 3 / 1; }
.research-identifiers > a:nth-of-type(6) { grid-area: 3 / 2; }

.research-identifiers .synapse-logo {
  height: 26px !important;
}

/* Preserve the official Google colors while keeping the black Scholar wordmark
   legible against the dark profile panel. */
[data-theme="dark"] .research-identifiers .scholar-link {
  padding: 5px 9px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 10px;
  background: rgba(255,255,255,.96) !important;
  box-shadow: 0 5px 16px rgba(0,5,14,.28);
}
[data-theme="dark"] .research-identifiers .scholar-link img {
  opacity: 1 !important;
}

.research-identifiers .doi-badge {
  grid-area: 4 / 1;
}

/* Compact only the phone header so the hero artwork enters the first view.
   Tablet and desktop spacing remains unchanged. */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-block: 4px;
  }

  .tags {
    gap: 12px;
  }

  .tag {
    gap: 6px;
    padding: 5px 10px;
  }

  .topnav {
    justify-content: flex-start;
    gap: 8px;
  }

  .topnav a {
    padding: 5px 7px;
  }

  .hero {
    margin-top: 2px;
    padding: 12px 14px;
  }
}

@media (max-width: 520px) {
  /* Keep the phone layout inside the viewport without masking overflow. */
  .wrap {
    padding-block: 12px 36px;
  }

  header {
    gap: 8px;
  }

  .tags,
  .topnav {
    min-width: 0;
  }

  /* A backdrop-filter makes fixed tooltip panels use each tag as their
     containing block, so their viewport-sized width spills off-screen. */
  .tags .tag.tooltip {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .topnav {
    justify-content: flex-start;
  }

  .orientation-entry.hint-active {
    flex-basis: 100%;
    padding-top: 42px;
  }

  .orientation-hint {
    left: 2px;
    white-space: normal;
  }

  .hero {
    padding: 12px 14px;
  }

  .hero-inner,
  .hero-inner > *,
  .profile-card,
  .cta,
  .box,
  .card,
  details,
  details > div {
    min-width: 0;
    max-width: 100%;
  }

  img,
  svg,
  video,
  iframe {
    max-width: 100%;
  }

  .btn,
  .assistant-button,
  details.fold > summary {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .outputs-heading {
    flex-direction: column;
  }

  .research-identifiers {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    column-gap: 12px;
  }

  .research-identifiers img {
    width: auto;
    height: auto;
    object-fit: contain;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orientation-hint {
    transform: none;
    transition: none;
  }

  .hint-pointer {
    animation: none;
  }

  .orientation-hint.is-dismissing {
    transform: none;
  }
}
