/* GENERATED from Tiptree design-system v0.6.0 — DO NOT EDIT. */
:root {
  --tt-brand-black: #1b1b1b;
  --tt-brand-teal-dark: #47696b;
  --tt-brand-teal-light: #638b8d;
  --tt-brand-yellow: #e3e6a6;
  --tt-brand-white: #ffffff;
  --tt-brand-grey: #edede9;
  --tt-brand-grey-medium: #adada8;
  --tt-stone-000: #ffffff;
  --tt-stone-050: #fcfcfb;
  --tt-stone-100: #f8f8f6;
  --tt-stone-150: #f1f1ec;
  --tt-stone-200: var(--tt-brand-grey);
  --tt-stone-250: #e6e6e0;
  --tt-stone-300: #dcdcd4;
  --tt-stone-350: #cfcfc6;
  --tt-stone-400: #bebeb3;
  --tt-stone-450: #a6a69b;
  --tt-stone-500: #909088;
  --tt-stone-550: #7e7c73;
  --tt-stone-600: #6f6f67;
  --tt-stone-650: #5c5c55;
  --tt-stone-700: #4d4d47;
  --tt-stone-750: #3b3b38;
  --tt-stone-800: #33332f;
  --tt-stone-850: #282826;
  --tt-stone-875: #222220;
  --tt-stone-900: #1b1b1a;
  --tt-stone-950: #161615;
  --tt-stone-1000: #10100f;
  --tt-stone-1050: #0d0d0c;
  --tt-teal-100: #e4eeee;
  --tt-teal-200: #c8dcdc;
  --tt-teal-300: #a3c3c4;
  --tt-teal-400: #82a7a9;
  --tt-teal-500: var(--tt-brand-teal-light);
  --tt-teal-550: #3c8286;
  --tt-teal-600: var(--tt-brand-teal-dark);
  --tt-teal-650: #346f72;
  --tt-teal-700: #3a5759;
  --tt-teal-800: #2d4345;
  --tt-teal-900: #1f3031;
  --tt-citron-100: #f4f5db;
  --tt-citron-200: var(--tt-brand-yellow);
  --tt-citron-300: #cfd478;
  --tt-citron-400: #b7be54;
  --tt-citron-500: #9ba23c;
  --tt-citron-600: #7d842e;
  --tt-citron-700: #616724;
  --tt-citron-800: #474b1b;
  --tt-citron-900: #2f3212;
  --tt-color-red: #eb5757;
  --tt-color-green: #27a644;
  --tt-color-orange: #fc7840;
  --tt-color-yellow: #f0bf00;
  --tt-color-blue: #0a84ff;
  --tt-font-sans: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --tt-font-serif: 'Literata', Georgia, serif;
  --tt-font-mono: ui-monospace, 'SF Mono', Menlo, monospace;
  --tt-font-code: 'Google Sans Code', ui-monospace, sfmono-regular, 'SF Mono', menlo, monaco, consolas, monospace;
  --tt-font-weight-light: 300;
  --tt-font-weight-normal: 400;
  --tt-font-weight-medium: 510;
  --tt-font-weight-semibold: 590;
  --tt-font-weight-bold: 680;
  --tt-font-size-large: 1.0625rem;
  --tt-font-line-height-large: 1.6;
  --tt-font-letter-spacing-large: 0;
  --tt-font-size-regular: 0.9375rem;
  --tt-font-line-height-regular: 1.5;
  --tt-font-letter-spacing-regular: -0.011em;
  --tt-font-size-small: 0.875rem;
  --tt-font-line-height-small: 1.5;
  --tt-font-letter-spacing-small: -0.013em;
  --tt-font-size-mini: 0.8125rem;
  --tt-font-line-height-mini: 1.5;
  --tt-font-letter-spacing-mini: -0.01em;
  --tt-font-size-micro: 0.75rem;
  --tt-font-line-height-micro: 1.4;
  --tt-font-letter-spacing-micro: 0;
  --tt-font-size-tiny: 0.625rem;
  --tt-font-line-height-tiny: 1.5;
  --tt-font-letter-spacing-tiny: -0.015em;
  --tt-font-heading-display-size: 3.25rem;
  --tt-font-heading-display-line-height: 1.05;
  --tt-font-heading-display-letter-spacing: -0.022em;
  --tt-font-heading-display-weight: 300;
  --tt-font-heading-page-family: var(--tt-font-serif);
  --tt-font-heading-page-size: 2.5rem;
  --tt-font-heading-page-line-height: 1.2;
  --tt-font-heading-page-letter-spacing: -0.02em;
  --tt-font-heading-page-weight: 300;
  --tt-font-heading-section-family: var(--tt-font-serif);
  --tt-font-heading-section-size: 1.375rem;
  --tt-font-heading-section-line-height: 1.33;
  --tt-font-heading-section-letter-spacing: -0.01em;
  --tt-font-heading-section-weight: 400;
  --tt-font-heading-sub-family: var(--tt-font-sans);
  --tt-font-heading-sub-size: 1.0625rem;
  --tt-font-heading-sub-line-height: 1.4;
  --tt-font-heading-sub-letter-spacing: -0.012em;
  --tt-font-heading-sub-weight: 500;
  --tt-radius-4: 4px;
  --tt-radius-6: 6px;
  --tt-radius-8: 8px;
  --tt-radius-12: 12px;
  --tt-radius-16: 16px;
  --tt-radius-20: 20px;
  --tt-radius-24: 24px;
  --tt-radius-full: 9999px;
  --tt-control-hero: 56px;
  --tt-control-large: 44px;
  --tt-control-default: 36px;
  --tt-control-small: 28px;
  --tt-speed-quick: 0.1s;
  --tt-speed-regular: 0.25s;
  --tt-ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --tt-ease-in-out-cubic: cubic-bezier(0.645, 0.045, 0.355, 1);
  --tt-z-header: 100;
  --tt-z-overlay: 500;
  --tt-z-popover: 600;
  --tt-z-dialog: 700;
  --tt-z-toast: 800;
  --tt-z-tooltip: 1100;
  --tt-focus-ring-width: 2px;
  --tt-focus-ring-offset: 2px;
}
/* GENERATED from Tiptree design-system v0.6.0 — DO NOT EDIT. */
:root {
  color-scheme: only light;
  --tt-color-bg-primary: var(--tt-stone-050);
  --tt-color-bg-secondary: var(--tt-stone-150);
  --tt-color-bg-tertiary: var(--tt-stone-200);
  --tt-color-bg-ground: var(--tt-stone-050);
  --tt-color-surface-card: var(--tt-stone-000);
  --tt-color-surface-code: var(--tt-stone-150);
  --tt-color-surface-hover: #1b1b1b0d;
  --tt-color-row-hover: var(--tt-stone-150);
  --tt-color-surface-open: var(--tt-stone-200);
  --tt-color-text-primary: var(--tt-brand-black);
  --tt-color-text-quaternary: var(--tt-stone-550);
  --tt-color-text-secondary: var(--tt-stone-750);
  --tt-color-text-tertiary: var(--tt-stone-650);
  --tt-color-border-interactive: var(--tt-stone-350);
  --tt-color-border-primary: var(--tt-stone-350);
  --tt-color-border-section: var(--tt-stone-250);
  --tt-color-border-translucent: #0000000f;
  --tt-color-accent: var(--tt-teal-550);
  --tt-color-accent-hover: var(--tt-teal-650);
  --tt-color-accent-on-surface: var(--tt-color-accent);
  --tt-color-accent-on-surface-hover: var(--tt-color-accent-hover);
  --tt-color-accent-tint: var(--tt-teal-100);
  --tt-color-action-danger-bg: #b04a3f;
  --tt-color-action-danger-bg-hover: #963f36;
  --tt-color-action-danger-bg-pressed: #7f352e;
  --tt-color-action-danger-fg: var(--tt-stone-000);
  --tt-color-action-disabled-bg: #1b1b1b0f;
  --tt-color-link: var(--tt-teal-600);
  --tt-color-highlight: #8a9132;
  --tt-color-button-invert-bg: var(--tt-brand-black);
  --tt-color-button-invert-fg: var(--tt-brand-white);
  --tt-color-button-secondary-bg: var(--tt-stone-000);
  --tt-color-button-secondary-border: var(--tt-stone-550);
  --tt-color-keycap-bg: var(--tt-stone-450);
  --tt-color-keycap-bg-hover: var(--tt-stone-550);
  --tt-color-focus-ring: #5e9cff;
  --tt-color-surface-inverse: var(--tt-color-button-invert-bg);
  --tt-color-surface-sunken: var(--tt-stone-150);
  --tt-color-surface-tooltip: #000000cc;
  --tt-color-scrollbar-thumb: #0000001a;
  --tt-color-status-success-fg: #047857;
  --tt-color-status-success-bg: #ecfdf5;
  --tt-color-status-success-bg-emphasis: #d1fae5;
  --tt-color-status-success-border: #bbf7d0;
  --tt-color-status-danger-fg: #dc2626;
  --tt-color-status-danger-bg: #fef2f2;
  --tt-color-status-danger-border: #fecaca;
  --tt-color-status-warning-fg: #92400e;
  --tt-color-status-warning-bg: #fffbeb;
  --tt-color-status-warning-bg-emphasis: #fef3c7;
  --tt-color-status-warning-border: #fde68a;
  --tt-color-status-info-fg: #4f46e5;
  --tt-color-status-info-bg: #eef2ff;
  --tt-color-status-info-border: #e2e8f0;
  --tt-color-text-on-inverse: var(--tt-color-button-invert-fg);
  --tt-color-mark-new: #a4564a;
  --tt-color-mark-live: var(--tt-teal-600);
  --tt-color-mark-idle: var(--tt-stone-400);
  --tt-color-mark-community: #6a6499;
  --tt-color-channel-whatsapp: #4e7c5c;
  --tt-color-channel-sms: #63864a;
  --tt-shadow-low: 0px 2px 6px -2px #0000000d, 0px 1px 2px #00000008;
  --tt-shadow-medium: 0px 4px 14px -3px #00000012, 0px 1px 3px #0000000a;
  --tt-shadow-high: 0px 20px 60px -8px #0000001f, 0px 4px 12px #0000000d;
  --tt-shadow-lift: 0 4px 24px #4d4d4706, 0 4px 32px #4d4d4706, 0 16px 32px #4d4d4704;
}

[data-theme='dark'] {
  color-scheme: dark;
  --tt-color-bg-primary: var(--tt-stone-950);
  --tt-color-bg-secondary: var(--tt-stone-875);
  --tt-color-bg-tertiary: var(--tt-stone-850);
  --tt-color-bg-ground: var(--tt-stone-1050);
  --tt-color-surface-card: var(--tt-stone-875);
  --tt-color-surface-code: var(--tt-stone-950);
  --tt-color-surface-hover: #ffffff0f;
  --tt-color-row-hover: #ffffff1c;
  --tt-color-surface-open: #ffffff26;
  --tt-color-text-primary: var(--tt-stone-100);
  --tt-color-text-quaternary: var(--tt-stone-500);
  --tt-color-text-secondary: var(--tt-stone-300);
  --tt-color-text-tertiary: var(--tt-stone-400);
  --tt-color-border-interactive: #464641;
  --tt-color-border-primary: var(--tt-stone-750);
  --tt-color-border-section: var(--tt-stone-850);
  --tt-color-border-translucent: #ffffff12;
  --tt-color-accent: var(--tt-teal-400);
  --tt-color-accent-hover: var(--tt-teal-300);
  --tt-color-accent-on-surface: var(--tt-color-accent);
  --tt-color-accent-on-surface-hover: var(--tt-color-accent-hover);
  --tt-color-accent-tint: #1f2928;
  --tt-color-action-danger-bg: var(--tt-color-red);
  --tt-color-action-danger-bg-hover: #d64c4c;
  --tt-color-action-danger-bg-pressed: #c24444;
  --tt-color-action-danger-fg: var(--tt-brand-black);
  --tt-color-action-disabled-bg: #ffffff14;
  --tt-color-link: var(--tt-teal-300);
  --tt-color-highlight: #d6dc85;
  --tt-color-button-invert-bg: var(--tt-stone-200);
  --tt-color-button-invert-fg: var(--tt-brand-black);
  --tt-color-button-secondary-bg: var(--tt-stone-875);
  --tt-color-button-secondary-border: var(--tt-stone-550);
  --tt-color-keycap-bg: var(--tt-stone-700);
  --tt-color-keycap-bg-hover: var(--tt-stone-600);
  --tt-color-focus-ring: var(--tt-teal-400);
  --tt-color-surface-inverse: var(--tt-color-button-invert-bg);
  --tt-color-surface-sunken: var(--tt-stone-1000);
  --tt-color-surface-tooltip: var(--tt-stone-200);
  --tt-color-scrollbar-thumb: #ffffff1a;
  --tt-color-status-success-fg: #6ee7b7;
  --tt-color-status-success-bg: #0f2e1f;
  --tt-color-status-success-bg-emphasis: var(--tt-color-status-success-bg);
  --tt-color-status-success-border: #166534;
  --tt-color-status-danger-fg: #fca5a5;
  --tt-color-status-danger-bg: #2e1414;
  --tt-color-status-danger-border: #7f1d1d;
  --tt-color-status-warning-fg: #fcd34d;
  --tt-color-status-warning-bg: #2a2510;
  --tt-color-status-warning-bg-emphasis: var(--tt-color-status-warning-bg);
  --tt-color-status-warning-border: #78350f;
  --tt-color-status-info-fg: #93c5fd;
  --tt-color-status-info-bg: #152040;
  --tt-color-status-info-border: #1e3a8a;
  --tt-color-text-on-inverse: var(--tt-color-button-invert-fg);
  --tt-color-mark-new: #c47b6e;
  --tt-color-mark-live: var(--tt-teal-300);
  --tt-color-mark-idle: var(--tt-stone-600);
  --tt-color-mark-community: #9a95bd;
  --tt-color-channel-whatsapp: #7fae8c;
  --tt-color-channel-sms: #9db884;
  --tt-shadow-low: 0px 2px 6px -2px #0000002b, 0px 1px 2px #00000022;
  --tt-shadow-medium: 0px 4px 14px -3px #00000036, 0px 1px 3px #00000026;
  --tt-shadow-high: 0px 20px 60px -8px #00000066, 0px 4px 12px #00000038;
  --tt-shadow-lift: 0 2px 6px #00000033, 0 8px 24px #00000047;
}

/*
 * DESIGN-SYSTEM ADAPTER
 * Lacuna keeps its established token names while values flow from the
 * immutable light-default Tiptree theme. Dark overrides must stay on
 * :root[data-theme='dark'] so they outrank the root adapter declarations.
 */
:root {
  --bg-body: var(--tt-color-bg-primary);
  --bg-surface: var(--tt-color-surface-card);
  --bg-subtle: var(--tt-color-surface-sunken);
  --bg-stat: var(--tt-color-accent-tint);
  --bg-tag: var(--tt-color-accent-tint);
  --bg-tag-kind: var(--tt-color-status-warning-bg-emphasis);
  --bg-tag-cluster: var(--tt-color-accent-tint);
  --bg-tag-author: var(--tt-color-status-success-bg-emphasis);
  --text-main: var(--tt-color-text-primary);
  --text-muted: var(--tt-color-text-secondary);
  --text-light: var(--tt-color-text-tertiary);
  --brand-primary: var(--tt-teal-600);
  --brand-hover: var(--tt-teal-700);
  --brand-accent: var(--tt-teal-600);
  --brand-contrast: var(--tt-color-text-on-inverse);
  --border-light: var(--tt-color-border-primary);
  --border-medium: var(--tt-color-button-secondary-border);
  --bar-color: var(--tt-teal-400);

  /* Production repairs for copied markup that referenced absent tokens. */
  /* Product links follow Lacuna's contrast-checked brand ramp. */
  --link-color: var(--brand-primary);
  --border: var(--tt-color-border-primary);

  /* Intentional product overrides of the copied widget's #333/#666 text. */
  --text-primary: var(--tt-color-text-primary);
  --text-secondary: var(--tt-color-text-secondary);

  /* Canonical aliases for pre-existing fallback-guarded references. */
  --surface-raised: var(--tt-color-surface-card);
  --border-subtle: var(--tt-color-border-primary);

  /* APP-LOCAL GEOMETRY — outside the color/shadow adapter. */
  --reader-width: 768px;
  --lacuna-header-offset: 52px;
  --lacuna-shell-gap: clamp(24px, 4vw, 42px);
  --lacuna-pdf-rail-width: min(46vw, 760px);
  --lacuna-left-rail-slot: 0px;
  --lacuna-right-rail-slot: 0px;
  --lacuna-left-rail-gap: 0px;
  --lacuna-right-rail-gap: 0px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

:root[data-theme='dark'] {
  /* Contrast-vetoed ramp steps; see the adapter verification table. */
  --brand-primary: var(--tt-teal-300);
  --brand-hover: var(--tt-teal-200);
  --brand-accent: var(--tt-teal-300);
}
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 700; font-display: optional; src: url(/assets/fonts/inter-normal-cyrillic-ext-fccca918fea4.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 700; font-display: optional; src: url(/assets/fonts/inter-normal-cyrillic-aebf2ab4a4ce.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 700; font-display: optional; src: url(/assets/fonts/inter-normal-greek-ext-a2e2c783ca6f.woff2) format('woff2'); unicode-range: U+1F00-1FFF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 700; font-display: optional; src: url(/assets/fonts/inter-normal-greek-46dd4cdca58c.woff2) format('woff2'); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 700; font-display: optional; src: url(/assets/fonts/inter-normal-vietnamese-8db00ff46c67.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 700; font-display: optional; src: url(/assets/fonts/inter-normal-latin-ext-a28eb6d3ccb5.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 700; font-display: optional; src: url(/assets/fonts/inter-normal-latin-c940764593d0.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Literata'; font-style: normal; font-weight: 400 700; font-display: optional; src: url(/assets/fonts/literata-normal-cyrillic-ext-d26e056ef033.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Literata'; font-style: normal; font-weight: 400 700; font-display: optional; src: url(/assets/fonts/literata-normal-cyrillic-54cfea31320b.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Literata'; font-style: normal; font-weight: 400 700; font-display: optional; src: url(/assets/fonts/literata-normal-greek-ext-d68e77420f62.woff2) format('woff2'); unicode-range: U+1F00-1FFF; }
@font-face { font-family: 'Literata'; font-style: normal; font-weight: 400 700; font-display: optional; src: url(/assets/fonts/literata-normal-greek-cac846884121.woff2) format('woff2'); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: 'Literata'; font-style: normal; font-weight: 400 700; font-display: optional; src: url(/assets/fonts/literata-normal-vietnamese-c95ab80c7c1d.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Literata'; font-style: normal; font-weight: 400 700; font-display: optional; src: url(/assets/fonts/literata-normal-latin-ext-d6299ba7463f.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Literata'; font-style: normal; font-weight: 400 700; font-display: optional; src: url(/assets/fonts/literata-normal-latin-c614760279d7.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Literata'; font-style: italic; font-weight: 400; font-display: optional; src: url(/assets/fonts/literata-italic-cyrillic-ext-a6b6699f688d.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Literata'; font-style: italic; font-weight: 400; font-display: optional; src: url(/assets/fonts/literata-italic-cyrillic-7bacf63c7dce.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Literata'; font-style: italic; font-weight: 400; font-display: optional; src: url(/assets/fonts/literata-italic-greek-ext-25e11c0d2000.woff2) format('woff2'); unicode-range: U+1F00-1FFF; }
@font-face { font-family: 'Literata'; font-style: italic; font-weight: 400; font-display: optional; src: url(/assets/fonts/literata-italic-greek-397e18a68ffa.woff2) format('woff2'); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: 'Literata'; font-style: italic; font-weight: 400; font-display: optional; src: url(/assets/fonts/literata-italic-vietnamese-a27bfd4428fe.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Literata'; font-style: italic; font-weight: 400; font-display: optional; src: url(/assets/fonts/literata-italic-latin-ext-5a6b0483f749.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Literata'; font-style: italic; font-weight: 400; font-display: optional; src: url(/assets/fonts/literata-italic-latin-0b90f02d3919.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
[data-theme="dark"] .impact-gravity-pos { background: var(--tt-color-status-success-bg); color: var(--tt-color-status-success-fg); }
[data-theme="dark"] .impact-gravity-neg { background: var(--tt-color-status-danger-bg); color: var(--tt-color-status-danger-fg); }
[data-theme="dark"] .impact-nucleation { background: var(--tt-color-status-info-bg); color: var(--tt-color-status-info-fg); }
[data-theme="dark"] .impact-temporal { background: var(--tt-color-status-warning-bg); color: var(--tt-color-status-warning-fg); }
[data-theme="dark"] .flash-ok { background: var(--tt-color-status-success-bg); color: var(--tt-color-status-success-fg); }
[data-theme="dark"] .flash-err { background: var(--tt-color-status-danger-bg); color: var(--tt-color-status-danger-fg); }
[data-theme="dark"] .deeper .follow-ok { background: var(--tt-color-status-success-bg); border-color: #1a4a33; color: var(--tt-color-status-success-fg); }
[data-theme="dark"] .rising-list .dir-growth { color: #4ade80; }
[data-theme="dark"] .adv-filters-row input[type=number],
[data-theme="dark"] .adv-date-range input[type=text],
[data-theme="dark"] .adv-filters-row select { background: var(--bg-surface); color: var(--text-main); }
[data-theme="dark"] .recent-type-author { color: var(--tt-color-status-success-fg); }
[data-theme="dark"] .recent-type-hypothesis { background: var(--tt-color-status-warning-bg); color: var(--tt-color-status-warning-fg); }
.theme-toggle { cursor: pointer; }

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
       line-height: 1.6; color: var(--text-main); background: var(--bg-body); }
a { color: var(--link-color); text-decoration: none; }
a:hover { color: var(--brand-hover); text-decoration: underline; }
.lacuna-shell-columns { display: block; }
.lacuna-shell-rail-slot { display: none; }
@media (min-width: 769px) {
  /* The paper's pane stands against the page with no gap of its own: the page's 24px
     padding is then the space on both sides of the column, the same left and right. */
  body.lacuna-pdf-rail-open { --lacuna-left-rail-slot: var(--lacuna-pdf-rail-width); }
  /* Each pane's slot is followed by its own gap track, zero while the pane is closed:
     the page is centred in the window until a pane opens. */
  .lacuna-shell-columns { display: grid; grid-template-columns: var(--lacuna-right-rail-slot) var(--lacuna-right-rail-gap) var(--lacuna-left-rail-slot) var(--lacuna-left-rail-gap) minmax(0, 1fr); align-items: start; }
  .lacuna-shell-rail-slot-right { grid-column: 1; grid-row: 1; }
  .lacuna-shell-rail-slot-left { grid-column: 3; grid-row: 1; }
  .lacuna-shell-main { min-width: 0; grid-column: 5; grid-row: 1; }
  .lacuna-shell-rail-slot { display: block; min-width: 0; overflow: visible; align-self: start; position: sticky; top: var(--lacuna-header-offset); height: calc(100vh - var(--lacuna-header-offset)); }
}
@media (min-width: 1024px) {
  /* Althea's pane stands against the page as the paper's does, with no gap of its own: the
     page's 24px of padding is then the space on both sides of the column. */
  body.lacuna-chat-rail-open { --lacuna-right-rail-slot: var(--lacuna-chat-rail-width); }
}
.page { max-width: 1200px; margin: 0 auto; padding: 24px; position: relative; }
.page:has(> .venue-page-wide) { max-width: 1440px; }
.page:has(> .venue-page-wide) > h1,
.page:has(> .venue-page-wide) > .breadcrumb { max-width: none; }
.page-narrow { max-width: var(--reader-width); margin: 0 auto; }
.content-grid { display: grid; grid-template-columns: 1fr 280px; gap: 32px; }
.content-grid > .main { max-width: 768px; }
@media (max-width: 900px) { .content-grid { grid-template-columns: 1fr; } }
.author-reader-page { max-width: var(--reader-width); }
.author-reader-header { margin: 0 0 28px; }
.author-reader-header-card { padding: 32px 32px 28px; margin: 0; position: relative; border-color: var(--border-light); border-radius: var(--radius-lg); }
.author-card-corner { position: absolute; top: 16px; right: 16px; display: flex; align-items: center; gap: 8px; }
.author-card-corner .author-claim-link, .author-card-corner .author-claim-matching { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid var(--border-light); border-radius: var(--radius-md); background: transparent; color: var(--text-muted); font-size: 0.82em; font-weight: 500; line-height: 1; text-decoration: none; transition: border-color 150ms ease, color 150ms ease, transform 120ms cubic-bezier(0.23,1,0.32,1); white-space: nowrap; margin: 0; }
.author-card-corner .author-claim-link { cursor: pointer; }
.author-card-corner .author-claim-link:hover { border-color: var(--link-color); color: var(--link-color); text-decoration: none; }
.author-card-corner .author-claim-link:active { transform: scale(.97); }
.author-card-corner .author-claim-matching { border-color: var(--brand-accent); color: var(--brand-primary); }
.author-claim-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; margin: 14px 0 0; color: var(--text-muted); font-size: 0.88em; line-height: 1.4; }
.author-claim-line form { margin: 0; }
.or-signin-btn { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; padding: 8px 16px 8px 9px; border: 1px solid var(--border-medium); border-radius: var(--radius-md); background: var(--bg-surface); color: var(--text-primary); font: inherit; font-size: 0.95rem; font-weight: 600; line-height: 1.2; cursor: pointer; transition: border-color 140ms ease, transform 140ms cubic-bezier(0.23, 1, 0.32, 1); }
.or-signin-btn:hover { border-color: var(--link-color); }
.or-signin-btn:active { transform: scale(0.98); }
.or-signin-btn:focus-visible { outline: var(--tt-focus-ring-width) solid var(--tt-color-focus-ring); outline-offset: var(--tt-focus-ring-offset); }
.or-signin-btn img { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 4px; }
/* On the author card the button is a quiet link: the mark and one line of link text. */
.author-claim-line .or-signin-btn { gap: 6px; min-height: 0; padding: 0; line-height: inherit; border: 0; background: none; color: var(--link-color); font-size: inherit; font-weight: 500; }
.author-claim-line .or-signin-btn:hover { text-decoration: underline; text-underline-offset: 2px; }
.author-claim-line .or-signin-btn img { width: 16px; height: 16px; flex-basis: 16px; border-radius: 3px; }
.or-pop { position: fixed; z-index: var(--tt-z-popover); box-sizing: border-box; width: min(20rem, calc(100vw - 24px)); padding: 14px 16px 12px; border: 1px solid var(--border-medium); border-radius: var(--radius-lg); background: var(--bg-surface); color: var(--text-primary); box-shadow: var(--shadow-lg); text-align: left; }
.or-pop-title { display: block; margin: 0 0 4px; font-size: 1rem; }
.or-pop-text { margin: 0 0 12px; color: var(--text-muted); font-size: 0.88rem; line-height: 1.45; }
.or-pop-form { margin: 0; }
.or-pop .or-signin-btn { width: 100%; }
.or-pop-other { display: block; margin-top: 10px; color: var(--text-muted); font-size: 0.86rem; text-align: center; text-decoration: underline; text-underline-offset: 3px; }
.or-pop-other:hover { color: var(--link-color); }
.author-claim-dialog { max-width: 430px; margin: auto; padding: 24px; border: 1px solid var(--border-medium); border-radius: var(--radius-lg); background: var(--bg-surface); color: var(--text-primary); box-shadow: var(--shadow-lg); }
.author-claim-dialog::backdrop { background: rgb(0 0 0 / 45%); }
.author-claim-dialog h2 { margin: 0 0 8px; padding-bottom: 0; border-bottom: none; font-size: 1.25em; }
.author-claim-dialog p { margin: 0 0 20px; color: var(--text-muted); }
.author-claim-actions { display: flex; flex-direction: column; gap: 8px; }
.author-claim-actions form { margin: 0; width: 100%; }
.author-claim-actions .claim-btn { box-sizing: border-box; justify-content: center; width: 100%; min-height: 36px; }
.author-claim-details { display: grid; gap: 6px; margin: 0 0 16px; color: var(--text-muted); font-size: 0.9em; font-weight: 600; }
.author-claim-details textarea { box-sizing: border-box; width: 100%; padding: 8px; border: 1px solid var(--border-medium); border-radius: var(--radius-md); color: var(--text-primary); background: var(--bg-surface); font: inherit; resize: vertical; }
.author-claim-message { min-height: 1.2em; margin: 0 0 12px; }
.author-claim-account-comparison { display: grid; gap: 0; margin: 4px 0 16px; overflow: hidden; border: 1px solid var(--border-medium); border-radius: var(--radius-md); background: var(--bg-subtle); }
.author-claim-account-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; align-items: center; padding: 11px 12px; }
.author-claim-account-row + .author-claim-account-row { border-top: 1px solid var(--border-medium); }
.author-claim-account-label { color: var(--text-muted); font-size: 0.78rem; font-weight: 600; }
.author-claim-account-id { min-width: 0; overflow: hidden; color: var(--text-primary); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.82rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.author-claim-switch-copy { margin-bottom: 16px !important; font-size: 0.9rem; }
.author-claim-report-fallback { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-medium); }
.author-claim-report-fallback summary { width: fit-content; color: var(--text-muted); font-size: 0.84rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.author-claim-report-fallback[open] summary { margin-bottom: 12px; }
.author-claim-report-fallback .author-claim-details { margin-bottom: 10px; }
.author-claim-dialog .claim-btn { transition: transform 140ms cubic-bezier(0.23, 1, 0.32, 1); }
.author-claim-dialog .claim-btn:active { transform: scale(0.98); }
@media (max-width: 520px) {
  .author-claim-account-row { grid-template-columns: 1fr; gap: 3px; }
}
.author-namesakes-note { margin: 12px 0 0; color: var(--text-muted); font-size: 0.88em; line-height: 1.5; }
.author-disclaim-reasons { display: grid; gap: 8px; margin: 0 0 16px; padding: 0; border: 0; color: var(--text-primary); }
.author-disclaim-reasons label { display: flex; gap: 8px; align-items: flex-start; font-size: 0.92em; }
.author-badge-preview { display: block; height: 20px; width: auto; margin: 0 0 16px; }
.author-badge-snippets { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0 0 16px; }
.author-badge-snippet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 4px; color: var(--text-muted); font-size: 0.85em; font-weight: 600; }
.author-badge-snippet-head .claim-btn { padding: 3px 10px; font-size: 0.8em; }
.author-badge-snippet pre { margin: 0; padding: 8px 10px; border: 1px solid var(--border-medium); border-radius: var(--radius-md); color: var(--text-primary); background: var(--bg-subtle); font: 0.78em/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; overflow-x: auto; }
.author-disclaim-choice { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 16px; color: var(--text-primary); font-size: 0.92em; }
.author-disclaim-choice input { margin-top: 4px; }
.author-reader-kicker { font-size: 0.74em; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); font-weight: 700; margin: 0 0 12px; }
.author-reader-name { justify-content: center; text-align: center; font-size: clamp(1.75em, 3vw, 2.2em); margin: 0 0 8px; color: var(--text-main); }
.author-affiliations { display: block; max-width: 100%; margin: 2px 0 12px; text-align: center; }
.identity-card .author-current-affiliations { display: inline; min-width: 0; margin: 0; line-height: 1.55; text-align: center; }
.author-affiliation-link, .author-affiliation-name { color: var(--text-muted); text-decoration: none; text-underline-offset: 3px; }
.author-affiliation-link:hover { color: var(--brand-primary); text-decoration: underline; }
.author-affiliation-separator { color: var(--text-light); }
.author-affiliation-history { display: contents; }
.author-affiliation-history summary { display: inline-flex; align-items: center; gap: 4px; min-width: 0; padding: 2px 3px; border-radius: 5px; color: var(--text-light); font-size: .76em; font-weight: 600; line-height: 1.4; list-style: none; cursor: pointer; transition: color 150ms ease, background 150ms ease, transform 120ms cubic-bezier(0.23,1,0.32,1); white-space: nowrap; }
.author-affiliation-history summary::-webkit-details-marker { display: none; }
.author-affiliation-history summary:active { transform: scale(.98); }
.author-affiliation-history summary:focus-visible { outline: 2px solid var(--brand-accent); outline-offset: 2px; }
.author-affiliation-history summary svg { transition: transform 160ms cubic-bezier(0.23,1,0.32,1); }
.author-affiliation-history[open] summary svg { transform: rotate(180deg); }
.author-affiliation-history-separator { color: var(--text-light); font-size: 1.3em; font-weight: 400; }
.author-affiliation-history-count { font-variant-numeric: tabular-nums; }
.author-affiliation-history-list { display: block; width: min(580px, calc(100vw - 96px)); margin: 7px auto 0; overflow: hidden; border: 1px solid var(--border-medium); border-radius: var(--radius-md); background: var(--bg-subtle); list-style: none; text-align: left; }
@media (hover: hover) and (pointer: fine) { .author-affiliation-history summary:hover { color: var(--text-muted); background: var(--bg-subtle); } }
.author-affiliation-history-list > li { padding: 9px 11px; border-top: 1px solid var(--border-light); }
.author-affiliation-history-list > li:first-child { border-top: 0; }
.author-affiliation-history-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.author-affiliation-history-group-head a, .author-affiliation-history-group-head .author-affiliation-name { min-width: 0; font-size: .78em; font-weight: 600; }
.author-affiliation-history-period { flex-shrink: 0; color: var(--text-light); font-size: .68em; font-variant-numeric: tabular-nums; }
.author-affiliation-role-list { display: flex; flex-direction: column; gap: 2px; margin: 4px 0 0; padding: 0; list-style: none; }
.author-affiliation-role-list li { padding: 0; border: 0; color: var(--text-light); font-size: .68em; line-height: 1.4; }
.author-verification-mark { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex: 0 0 22px; color: #fff; cursor: help; }
.author-verification-mark::before, .author-verification-mark::after { content: ""; position: absolute; inset: 0; background: #2563eb; -webkit-mask: url('/assets/althea-symbol.svg') center / contain no-repeat; mask: url('/assets/althea-symbol.svg') center / contain no-repeat; }
.author-verification-mark::after { transform: rotate(4deg) scale(0.98); }
.author-verification-mark svg { position: relative; z-index: 1; width: 13px; height: 13px; }
[data-theme="dark"] .author-verification-mark::before, [data-theme="dark"] .author-verification-mark::after { background: #3b82f6; }
.author-reader-body { min-width: 0; }
@media (max-width: 640px) {
  .author-reader-header-card { padding: 22px 18px 18px; }
  .author-reader-name { font-size: 1.6em; }
}
.main { min-width: 0; }
.sidebar { }
.sidebar h3 { font-family: 'Inter', sans-serif; font-size: 0.9em; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.sidebar-section { margin-bottom: 20px; }
.sidebar a:not(.claim-btn):not(.external-links a) { display: block; font-size: 0.88em; padding: 3px 0; }
h1 { font-family: 'Literata', 'Georgia', serif; font-size: 1.8em; line-height: var(--tt-font-heading-page-line-height); margin-bottom: 4px; font-weight: 700; }
h2 { font-family: 'Literata', 'Georgia', serif; font-size: 1.3em; margin: 24px 0 8px; border-bottom: 1px solid var(--border-medium); padding-bottom: 4px; font-weight: 400; }
h3 { font-family: 'Literata', 'Georgia', serif; font-size: 1.05em; margin: 16px 0 4px; font-weight: 400; }
.breadcrumb { font-size: 0.85em; color: var(--brand-accent); margin: 0; display: flex; align-items: center; min-width: 0; }
.page > .breadcrumb { width: 100%; max-width: var(--reader-width); margin: 0 auto 12px; }
.breadcrumb a { color: var(--brand-accent); display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.breadcrumb img { flex-shrink: 0; margin-right: 0 !important; }
.subtitle { font-family: 'Literata', 'Georgia', serif; font-size: 0.95em; color: var(--text-muted); margin-bottom: 16px; font-style: italic; }
/* Authors on their own line(s), then venue, year and sources on the next. */
.paper-meta-line .paper-authors-inline, .paper-meta-line .paper-venue-line { display: block; }
/* Only an author with a page on Lacuna is a link, and the line mixes those names with
   plain ones: the underline says which can be pressed without relying on colour. */
.paper-authors-inline a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
/* Title, 16px, authors, 16px, tags, 24px, the row of actions. The tags stand 1px inside
   their line, so the line itself starts 15px under the authors. */
.paper-meta-line { margin-top: 16px; margin-bottom: 24px; }
.paper-meta-line .paper-venue-line { margin-top: 15px; }
.paper-source-link { white-space: nowrap; }
.paper-source-link svg { display: inline-block; width: 0.7em; height: 0.7em; width: 1cap; height: 1cap; margin-left: 0.2em; vertical-align: baseline; }
.paper-meta-line .paper-venue-year { display: inline-flex; gap: 6px; white-space: nowrap; vertical-align: baseline; }
/* A Work with several versions: its versions control stands in the venue tags' place and is
   drawn as one of them (the tag's ground, the line's italic serif), with its count and a
   chevron to say there is a menu behind it. The menu is set in the page's sans. */
.paper-venue-line .version-menu-wrap { max-width: 100%; vertical-align: baseline; font-family: 'Inter', sans-serif; font-style: normal; }
.paper-venue-line .version-menu-btn { box-sizing: border-box; max-width: 100%; min-width: 0; gap: 6px; padding: 2px 8px 2px 10px; border: 0; border-radius: var(--tt-radius-full); background: var(--bg-stat); color: var(--text-muted); font-family: 'Literata', 'Georgia', serif; font-style: italic; font-size: 0.85em; font-weight: 400; line-height: inherit; }
.paper-venue-line .version-menu-btn > svg { flex: none; width: 14px; height: 14px; }
.paper-venue-line .version-menu-current { min-width: 0; color: inherit; white-space: nowrap; }
/* How many other versions there are ("+1 more"), in the page's sans beside the italic name,
   so it reads as a note on the name and not as part of it. */
.paper-venue-line .version-menu-count { flex: none; min-width: 0; padding: 0; border-radius: 0; background: none; color: inherit; font-family: 'Inter', sans-serif; font-style: normal; font-size: 0.75rem; font-weight: 500; line-height: inherit; white-space: nowrap; }
.paper-venue-line .version-menu-btn:hover { background: var(--bg-tag); color: var(--text-main); }
.paper-venue-line .version-menu-btn[aria-expanded="true"] { background: var(--bg-tag); color: var(--brand-primary); }
.paper-venue-line .row-menu.version-menu { font-size: 1rem; color: var(--text-main); }
.paper-submission-status { display: inline-flex; align-items: center; padding: 2px 7px; border: 1px solid rgba(166, 55, 55, 0.28); border-radius: 999px; background: rgba(166, 55, 55, 0.09); color: #9e3030; font-family: 'Inter', sans-serif; font-size: 0.75em; font-style: normal; font-weight: 700; line-height: 1.35; white-space: nowrap; }
.paper-submission-status.withdrawn { border-color: rgba(151, 105, 31, 0.3); background: rgba(151, 105, 31, 0.1); color: #825712; }
[data-theme="dark"] .paper-submission-status { border-color: rgba(252, 165, 165, 0.32); background: rgba(127, 29, 29, 0.28); color: #fca5a5; }
[data-theme="dark"] .paper-submission-status.withdrawn { border-color: rgba(253, 230, 138, 0.28); background: rgba(113, 63, 18, 0.3); color: #fde68a; }
.key-findings { margin: 24px 0; }
.key-findings h3 { font-size: 0.95em; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-light); margin-bottom: 12px; }
.key-findings blockquote { border-left: 3px solid var(--border); padding: 8px 16px; margin: 0 0 12px 0; font-size: 0.93em; color: var(--text-secondary); }
.key-findings blockquote a { color: var(--link-color); }
.external-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.88em; margin: 8px 0 16px 0; }
.external-links a { color: var(--link-color); text-decoration: none; }
.external-links a:hover { text-decoration: underline; }
.pdf-viewer-backdrop { position: fixed; inset: var(--lacuna-header-offset) 0 0 0; border: none; background: rgb(18 25 31 / 34%); z-index: 86; opacity: 0; pointer-events: none; transition: opacity 0.18s ease; }
.pdf-viewer-backdrop.visible { opacity: 1; pointer-events: auto; }
.pdf-rail-shell { position: relative; width: 100%; height: 100%; overflow: visible; }
.pdf-viewer-wrap { position: relative; top: 0; left: 0; width: 100%; height: 100%; margin: 0; display: flex; flex-direction: column; border-right: 1px solid var(--border-light); border-radius: 0; overflow: hidden; container: pdf-reader / inline-size; overscroll-behavior-y: contain; overscroll-behavior-x: auto; background: var(--bg-surface); z-index: 89; transform: translateX(-100%); opacity: 0; transition: transform 0.22s ease, opacity 0.22s ease; }
.pdf-viewer-wrap.visible { transform: translateX(0); opacity: 1; }
/* The paper's reader. Its bar: on the left the ways through the paper (its sections, a
   find, a page to type), in the middle how large it is drawn, on the right the pane
   itself. Every control is a small round one; a field has a field's corners. The
   reader's own lines are the hairline the header draws under itself. */
.pdf-viewer-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; height: 45px; padding: 0 12px; background: var(--bg-surface); border-bottom: 1px solid var(--border-light); font-size: 0.82em; color: var(--text-muted); position: relative; z-index: 12; flex: 0 0 auto; }
.pdf-bar-left, .pdf-bar-zoom, .pdf-bar-right { display: flex; align-items: center; min-width: 0; }
.pdf-bar-left { grid-column: 1; gap: 4px; justify-self: start; }
.pdf-bar-zoom { grid-column: 2; gap: 2px; }
/* The pane's own controls keep the bar's end while the zoom is not shown (the paper loading,
   or failed), when they would otherwise take its place in the middle. */
.pdf-bar-right { grid-column: 3; gap: 4px; justify-self: end; }
.pdf-bar-btn[hidden], .pdf-bar-zoom[hidden], .pdf-page-jump[hidden] { display: none; }
.pdf-viewer-wrap .pdf-bar-btn { width: var(--tt-control-small); height: var(--tt-control-small); flex: 0 0 auto; }
.pdf-bar-btn svg { width: 16px; height: 16px; }
.pdf-bar-btn:disabled { opacity: 0.35; cursor: default; pointer-events: none; }
/* The bar stands on the surface's white, as the bar of Althea's pane does beside it; a
   control answers with the subtle ground. */
.pdf-viewer-bar .nav-icon-button:hover, .pdf-viewer-bar .nav-icon-button[aria-expanded="true"], .pdf-zoom-level:hover:not(:disabled) { border-color: var(--border-light); background: var(--bg-subtle); color: var(--text-main); }
.pdf-page-info { margin-left: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pdf-page-jump { display: inline-flex; align-items: center; gap: 2px; margin-left: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pdf-page-label { display: inline-flex; }
#pdf-page-total { margin: 0 4px; }
.pdf-page-field { width: calc(var(--pdf-page-digits, 2) * 1ch + 18px); height: var(--tt-control-small); padding: 0 8px; border: 1px solid var(--border-medium); border-radius: var(--tt-radius-12); background: var(--bg-surface); color: var(--text-main); font: inherit; font-variant-numeric: tabular-nums; text-align: center; }
.pdf-page-field:focus-visible { outline: var(--tt-focus-ring-width) solid var(--tt-color-focus-ring); outline-offset: 1px; }
.pdf-zoom-level { min-width: 48px; height: var(--tt-control-small); padding: 0 8px; border: 1px solid transparent; border-radius: var(--tt-radius-full); background: transparent; color: var(--text-main); font: inherit; font-variant-numeric: tabular-nums; cursor: pointer; transition: background var(--tt-speed-quick) var(--tt-ease-out-quad), border-color var(--tt-speed-quick) var(--tt-ease-out-quad); }
.pdf-zoom-level:disabled { cursor: default; }
.pdf-full-enter, .pdf-full-leave { display: inline-flex; }
.pdf-full-leave, body.lacuna-pdf-rail-wide .pdf-full-enter { display: none; }
body.lacuna-pdf-rail-wide .pdf-full-leave { display: inline-flex; }
/* Under the bar: the paper's sections, when asked for, as a panel beside its pages. */
.pdf-body { position: relative; flex: 1 1 auto; min-height: 0; display: flex; }
.pdf-stage { position: relative; flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
/* The panel slides: its room opens and closes, and the list, held to the room's right
   edge at its full width, comes in from the left with it. The pages follow the room. */
.pdf-sections { --pdf-sections-width: min(240px, 45cqw); flex: 0 0 auto; display: flex; justify-content: flex-end; width: 0; overflow: hidden; visibility: hidden; transition: width var(--tt-speed-regular) var(--tt-ease-out-quad), visibility 0s linear var(--tt-speed-regular); }
.pdf-sections[data-open] { width: var(--pdf-sections-width); visibility: visible; transition: width var(--tt-speed-regular) var(--tt-ease-out-quad), visibility 0s; }
.pdf-sections-list { flex: 0 0 auto; width: var(--pdf-sections-width); height: 100%; padding: 8px; overflow-y: auto; overscroll-behavior: contain; border-right: 1px solid var(--border-light); background: var(--bg-surface); }
@media (prefers-reduced-motion: reduce) { .pdf-sections, .pdf-sections[data-open] { transition: none; } }
.pdf-section { display: block; width: 100%; padding: 6px 8px; border: 0; border-radius: var(--tt-radius-8); background: none; color: var(--text-main); font: inherit; font-size: 0.82em; line-height: 1.35; text-align: left; cursor: pointer; }
.pdf-section[data-depth="2"] { padding-left: 20px; color: var(--text-muted); }
.pdf-section:hover { background: var(--bg-subtle); color: var(--text-main); }
.pdf-section[aria-current="true"] { background: var(--bg-stat); color: var(--text-main); font-weight: 600; }
.pdf-section:focus-visible { outline: var(--tt-focus-ring-width) solid var(--tt-color-focus-ring); outline-offset: -2px; }
/* The find: a small box over the pages' corner under its button, flat with a hairline like
   the site's menus. */
.pdf-find { position: absolute; top: 12px; left: 12px; z-index: 6; display: flex; align-items: center; gap: 2px; width: min(340px, calc(100% - 24px - var(--pdf-scrollbar, 0px))); padding: 5px 5px 5px 12px; border: 1px solid var(--border-medium); border-radius: var(--tt-radius-12); background: var(--bg-surface); color: var(--text-muted); font-size: 0.82em; }
.pdf-find[hidden] { display: none; }
.pdf-find:has(.pdf-find-field:focus-visible) { outline: var(--tt-focus-ring-width) solid var(--tt-color-focus-ring); outline-offset: 1px; }
.pdf-find-field { flex: 1 1 auto; min-width: 0; height: var(--tt-control-small); padding: 0; border: 0; outline: 0; background: transparent; color: var(--text-main); font: inherit; }
.pdf-find-field::placeholder { color: var(--text-light); }
.pdf-find-count { flex: 0 0 auto; padding: 0 6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* The paper that did not load: said in the pages' place, a centred column with the way to
   the file in a tab of its own. */
.pdf-fault { position: absolute; inset: 0 0 92px 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; text-align: center; color: var(--text-muted); font-size: 0.88em; }
.pdf-fault[hidden] { display: none; }
.pdf-fault svg { width: 24px; height: 24px; color: var(--text-light); }
.pdf-fault strong { color: var(--text-main); font-size: 1.0625em; font-weight: 500; }
.pdf-fault .paper-read { margin-top: 8px; }
/* Althea's box, floating over the foot of the pages as it floats over a conversation in
   Althea, and drawn as hers is: one flat block on its own ground inside a hairline ring,
   20px corners, no shadow. It stands on a foot of the pages' ground that runs the width of
   the pages and down to their bottom edge, so nothing of the paper shows beside or under
   it, and the paper fades into that ground over the 24px above it, as a page's foot bar
   fades in Althea. A question typed here goes to her. Over the field stand four to start from, while the paper is at its top or
   the field is in use and empty; a press writes one into the field. */
.pdf-stage { --pdf-ground: var(--bg-surface); }
[data-theme="dark"] .pdf-stage { --pdf-ground: #1a1a1a; }
.pdf-ask { position: absolute; right: var(--pdf-scrollbar-beside, 0px); bottom: var(--pdf-scrollbar-across, 0px); left: 0; z-index: 5; display: flex; justify-content: center; padding: 24px 0 16px; background: linear-gradient(to bottom, transparent, var(--pdf-ground) 24px); pointer-events: none; }
.pdf-ask[hidden] { display: none; }
.pdf-ask-box { position: relative; width: min(736px, calc(100% - 48px)); padding: 8px; border-radius: var(--tt-radius-20); background: var(--tt-stone-000, #ffffff); pointer-events: auto; }
.pdf-ask-box::after { content: ""; position: absolute; inset: 0; border: 1px solid #e3e3de; border-radius: inherit; pointer-events: none; transition: border-color var(--tt-speed-quick) var(--tt-ease-out-quad); }
.pdf-ask-box:has(.pdf-ask-field:focus)::after { border-color: var(--tt-stone-400, #bebeb3); }
[data-theme="dark"] .pdf-ask-box { background: var(--tt-stone-875, #222220); }
[data-theme="dark"] .pdf-ask-box::after { border-color: #ffffff1f; }
[data-theme="dark"] .pdf-ask-box:has(.pdf-ask-field:focus)::after { border-color: var(--tt-stone-650, #5c5c55); }
/* The field is one line until its words need more: then it grows, line by line, to six,
   and scrolls after that. The send stays at its foot. */
.pdf-ask-field { display: block; box-sizing: border-box; width: 100%; height: var(--tt-control-default); min-height: var(--tt-control-default); max-height: 136px; padding: 8px 44px 8px 10px; border: 0; outline: 0; background: transparent; color: var(--text-main); font: inherit; font-size: 0.875em; line-height: 20px; resize: none; overflow-y: auto; }
.pdf-ask-field::placeholder { color: var(--text-light); }
/* Sending is what this box is for, so its arrow is the primary control: round and teal, as
   the header's button is. */
.pdf-ask-box .pdf-ask-send { position: absolute; right: 8px; bottom: 8px; border-color: transparent; border-radius: var(--tt-radius-full); background: var(--tt-teal-600); color: #fff; }
.pdf-ask-box .pdf-ask-send:hover { border-color: transparent; background: var(--tt-teal-700); color: #fff; }
.pdf-ask-starters { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--tt-speed-regular) var(--tt-ease-out-quad); }
.pdf-ask-box[data-starters] .pdf-ask-starters { grid-template-rows: 1fr; }
.pdf-ask-starters-clip { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s linear var(--tt-speed-regular); }
.pdf-ask-box[data-starters] .pdf-ask-starters-clip { visibility: visible; transition: visibility 0s; }
.pdf-ask-starters-row { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 2px 8px; }
.pdf-ask-starter { height: var(--tt-control-small); padding: 0 12px; border: 1px solid var(--border-light); border-radius: var(--tt-radius-full); background: transparent; color: var(--text-muted); font: inherit; font-size: 0.8125em; font-weight: 500; line-height: 1; white-space: nowrap; cursor: pointer; transition: background var(--tt-speed-quick) var(--tt-ease-out-quad), border-color var(--tt-speed-quick) var(--tt-ease-out-quad), color var(--tt-speed-quick) var(--tt-ease-out-quad); }
.pdf-ask-starter:hover { border-color: var(--border-medium); background: var(--bg-subtle); color: var(--text-main); }
.pdf-ask-starter:focus-visible { outline: var(--tt-focus-ring-width) solid var(--tt-color-focus-ring); outline-offset: 1px; }
@media (prefers-reduced-motion: reduce) { .pdf-ask-starters, .pdf-ask-starters-clip { transition: none; } }
.pdf-ask-send svg { width: 16px; height: 16px; }
/* The last lines of the paper scroll clear of the box. */
.pdf-stage:has(> .pdf-ask:not([hidden])) .pdf-container { padding-bottom: 92px; }
/* A narrow pane. The zoom gives up the bar's centre for room, then the bar keeps what acts
   and drops what only tells; the sections lie over the pages instead of beside them. */
@container pdf-reader (max-width: 620px) {
  .pdf-viewer-bar { grid-template-columns: auto minmax(0, 1fr) auto; }
  .pdf-bar-zoom { justify-self: center; }
}
@container pdf-reader (max-width: 560px) {
  .pdf-sections { --pdf-sections-width: min(280px, 82cqw); position: absolute; top: 0; bottom: 0; left: 0; z-index: 7; }
}
@container pdf-reader (max-width: 480px) { #pdf-page-total { display: none; } }
@container pdf-reader (max-width: 440px) { #pdf-page-prev, #pdf-page-next { display: none; } }
.pdf-container { position: relative; flex: 1 1 auto; min-height: 0; max-height: none; overflow: auto; scroll-behavior: smooth; overscroll-behavior-y: contain; overscroll-behavior-x: auto; background: var(--bg-surface); }
.pdf-container .pdf-page-canvas { display: block; position: relative; z-index: 1; }
.pdf-container .pdf-page-canvas-ghost { display: block; position: absolute; top: 50%; left: 50%; pointer-events: none; opacity: 0.6; z-index: 0; transform-origin: center center; will-change: transform; }
.pdf-container .pdf-page-wrap { position: relative; margin: 0 auto; overflow: hidden; }
.pdf-container .pdf-page-links { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
/* The page's words as real text over its picture (pdf.js draws them, unseen), so they can
   be selected, copied and found; a match of the find is marked on them. */
.pdf-container .textLayer { position: absolute; inset: 0; z-index: 2; overflow: clip; opacity: 1; line-height: 1; text-align: initial; -webkit-text-size-adjust: none; text-size-adjust: none; forced-color-adjust: none; transform-origin: 0 0; }
.pdf-container .textLayer :is(span, br) { position: absolute; color: transparent; white-space: pre; cursor: text; transform-origin: 0% 0%; }
.pdf-container .textLayer span.markedContent { top: 0; height: 0; }
.pdf-container .textLayer ::selection { background: rgba(79, 115, 120, 0.3); }
.pdf-container .textLayer br::selection { background: transparent; }
.pdf-container .textLayer .highlight { position: static; margin: -1px; padding: 1px; border-radius: 3px; background: rgba(255, 196, 0, 0.42); }
.pdf-container .textLayer .highlight.selected { background: rgba(255, 128, 0, 0.62); }
.hiddenCanvasElement { position: absolute; top: 0; left: 0; width: 0; height: 0; display: none; }
.pdf-container .pdf-page-link-hitbox { position: absolute; display: block; pointer-events: auto; background: transparent; }
.pdf-container .pdf-page-link-hitbox:focus-visible { outline: 2px solid rgba(79, 115, 120, 0.85); outline-offset: 1px; }
.pdf-container .pdf-page-wrap + .pdf-page-wrap { border-top: 1px solid var(--border-light); }
[data-theme="dark"] .pdf-container { background: #1a1a1a; }
.pdf-rail-resizer { display: none; position: absolute; top: 45px; right: -10px; bottom: 0; width: 20px; cursor: col-resize; z-index: 96; touch-action: none; pointer-events: none; }
.pdf-rail-resizer::before { content: ""; position: absolute; top: 50%; left: 50%; width: 3px; height: 68px; transform: translate(-50%, -50%); border-radius: 999px; background: rgba(110, 126, 133, 0.55); box-shadow: 0 0 0 1px rgba(255,255,255,0.28); }
@media (min-width: 769px) {
  body.lacuna-pdf-rail-open .pdf-rail-resizer { display: block; pointer-events: auto; }
  /* The pane stands against the page, so the half of its drag handle that reaches over the
     page's edge has to lie above the page to be caught. */
  body.lacuna-pdf-rail-open .lacuna-shell-rail-slot-left { z-index: 1; }
  /* Full width: the pane leaves its column and covers the page from the header down. It is
     what the reader asks for with the bar's button, and what the reader gets whenever the
     chat panel is open as well: three columns do not fit, so the paper stands against the
     chat and the page gives way until one of the two closes. The page under it keeps its
     place, and the header keeps its width where the window's scroll bar takes room. */
  body.lacuna-pdf-rail-full .lacuna-shell-rail-slot-left { position: fixed; top: var(--lacuna-header-offset); right: var(--pdf-full-right, 0px); bottom: 0; left: var(--lacuna-right-rail-slot); z-index: 89; height: auto; align-self: stretch; transition: right var(--tt-speed-regular) var(--tt-ease-out-quad); }
  html.lacuna-pdf-full { overflow: hidden; }
  html.lacuna-pdf-full .nav-bar { padding-right: calc(24px + var(--lacuna-scrollbar-gap, 0px)); }
  body.lacuna-pdf-rail-full .pdf-rail-resizer { display: none; }
  /* The pane goes to full width and back in one eased move: its edge travels (the rule
     above), and its look, which is the class below, eases with it: the room round the
     sheets and their ground. The bar keeps the pane's own 12px at its sides. */
  .pdf-container { transition: padding var(--tt-speed-regular) var(--tt-ease-out-quad), background-color var(--tt-speed-regular) var(--tt-ease-out-quad); }
  .pdf-container .pdf-page-wrap { transition: margin-top var(--tt-speed-regular) var(--tt-ease-out-quad), box-shadow var(--tt-speed-regular) var(--tt-ease-out-quad); }
  body.lacuna-pdf-rail-wide .pdf-viewer-wrap { border-right: 0; }
  body.lacuna-pdf-rail-wide .pdf-container { padding: 24px 0; background: var(--bg-subtle); }
  body.lacuna-pdf-rail-wide .pdf-stage { --pdf-ground: var(--bg-subtle); }
  body.lacuna-pdf-rail-wide .pdf-container .pdf-page-wrap { box-shadow: 0 0 0 1px var(--border-light); }
  body.lacuna-pdf-rail-wide .pdf-container .pdf-page-wrap + .pdf-page-wrap { margin-top: 16px; border-top: 0; }
  /* Where the change is not the reader's own move (the chat opens beside the paper, the pane
     closes) it is made at once. */
  body.lacuna-pdf-rail-snap .lacuna-shell-rail-slot-left, body.lacuna-pdf-rail-snap .pdf-container, body.lacuna-pdf-rail-snap .pdf-container .pdf-page-wrap { transition: none; }
  /* The open pane runs down to the footer's line: the room the footer keeps above itself
     moves into the page's column, so the page is as long as it was. */
  body.lacuna-pdf-rail-open .lacuna-shell-main { padding-bottom: 64px; }
  body.lacuna-pdf-rail-open .site-footer { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  body.lacuna-pdf-rail-full .lacuna-shell-rail-slot-left, .pdf-container, .pdf-container .pdf-page-wrap { transition: none; }
}
@media (min-width: 1024px) {
  /* Althea's pane runs down to the footer's line as the paper's pane does: the room the
     footer keeps above itself moves into the page's column. */
  body.lacuna-chat-rail-open .lacuna-shell-main { padding-bottom: 64px; }
  body.lacuna-chat-rail-open .site-footer { margin-top: 0; }
  /* Beside the chat the paper has no page to return to, and the chat has its own field. */
  body.lacuna-chat-rail-open #pdf-full, body.lacuna-chat-rail-open .pdf-ask { display: none; }
}
body.lacuna-pdf-rail-open .pdf-rail-resizer:hover::before,
body.lacuna-pdf-rail-resizing .pdf-rail-resizer::before { background: rgba(79, 115, 120, 0.9); }
body.lacuna-pdf-rail-resizing { cursor: col-resize; user-select: none; }
@media (max-width: 768px) {
  /* On a phone the reader is the whole screen, over the header: the paper is read inside
     Lacuna, and the bar's cross (or the phone's Back) returns to the page. Its bar keeps
     the ways through the paper, on controls a finger can hit; two fingers zoom, and the
     fields are 16px so that the phone does not zoom the screen when one is entered. */
  body.lacuna-pdf-rail-open { overflow: hidden; }
  body.lacuna-pdf-rail-open .lacuna-shell-rail-slot-left { display: block; position: fixed; inset: 0; z-index: calc(var(--tt-z-header) + 1); }
  /* A phone shows one of the two: while the chat is open the reader stands back, and it is
     where the reader left it once the chat closes. */
  body.lacuna-pdf-rail-open.lacuna-chat-rail-open .lacuna-shell-rail-slot-left { visibility: hidden; pointer-events: none; }
  .pdf-viewer-wrap { border-right: 0; }
  .pdf-viewer-bar { grid-template-columns: minmax(0, 1fr) auto; height: 52px; padding: 0 8px; }
  .pdf-bar-zoom, #pdf-full, #pdf-open-tab { display: none; }
  .pdf-viewer-wrap .pdf-bar-btn { width: var(--tt-control-default); height: var(--tt-control-default); }
  .pdf-page-field { height: var(--tt-control-default); }
  .pdf-page-field, .pdf-find-field, .pdf-ask-field { font-size: 16px; }
  #pdf-page-prev, #pdf-page-next { display: inline-flex; }
  #pdf-page-total { display: inline; }
  .pdf-find { top: 8px; left: 8px; width: min(340px, calc(100% - 16px)); }
  .pdf-ask { padding-bottom: 12px; }
  .pdf-ask-box { width: calc(100% - 24px); }
  .pdf-ask-starter { height: var(--tt-control-default); padding: 0 14px; font-size: 0.875em; }
  .pdf-section { min-height: var(--tt-control-large); padding: 12px; font-size: 0.9375em; line-height: 20px; }
  .pdf-section[data-depth="2"] { padding-left: 28px; }
  .pdf-rail-resizer { display: none; }
}
.paper-preview { --preview-ease: cubic-bezier(0.32, 0.72, 0, 1); position: absolute; z-index: 300; box-sizing: border-box; width: 380px; max-width: calc(100vw - 24px); background: var(--bg-surface); border: 1px solid var(--border-medium); border-radius: 14px; box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 12px 32px rgba(0,0,0,0.14); padding: 14px 16px 12px; pointer-events: auto; opacity: 0; transform: translateY(-6px) scale(0.96); transform-origin: var(--preview-origin-x, 50%) top; transition: opacity 120ms ease-in, transform 120ms ease-in; will-change: transform, opacity; }
.paper-preview.has-figure { width: 520px; }
.paper-preview::before { content: ""; position: absolute; inset: -10px; z-index: -1; }
.paper-preview[data-side="top"] { transform: translateY(6px) scale(0.96); transform-origin: var(--preview-origin-x, 50%) bottom; }
.paper-preview[data-state="open"] { opacity: 1; transform: none; transition: opacity 160ms var(--preview-ease), transform 180ms var(--preview-ease); }
.paper-preview[data-state="open"][data-motion="quick"] { transition-duration: 90ms; }
.paper-preview[data-state="open"][data-motion="slide"] { transition: opacity 120ms var(--preview-ease), transform 220ms var(--preview-ease); }
@media (prefers-reduced-motion: reduce) {
  .paper-preview, .paper-preview[data-side="top"], .paper-preview[data-state="open"] { transform: none; transition-property: opacity; }
}
.paper-preview-body { display: flex; gap: 14px; align-items: flex-start; }
.paper-preview-main { min-width: 0; flex: 1; }
.paper-preview-figure { flex: 0 0 132px; height: 164px; display: flex; align-items: center; justify-content: center; padding: 6px; box-sizing: border-box; background: #fff; border: 1px solid var(--border-light); border-radius: 10px; overflow: hidden; }
.paper-preview-figure img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.paper-preview-meta { font-size: 0.74em; color: var(--text-light); line-height: 1.4; margin: 0 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.paper-preview-title { font-family: 'Literata', Georgia, serif; font-size: 0.95em; font-weight: 700; line-height: 1.35; margin: 0 0 4px; color: var(--text-main); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.paper-preview-title a { color: inherit; text-decoration: none; }
.paper-preview-title a:hover { color: var(--brand-primary); }
.paper-preview-authors { font-size: 0.78em; color: var(--text-muted); line-height: 1.4; margin: 0 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.paper-preview-excerpt { font-size: 0.8em; color: var(--text-muted); line-height: 1.55; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.paper-preview-directions { font-size: 0.76em; color: var(--text-light); line-height: 1.4; margin: 8px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.paper-preview-directions a { color: var(--link-color); font-weight: 600; text-decoration: none; }
.paper-preview-directions a:hover { text-decoration: underline; }
.paper-preview-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 10px; }
.paper-preview-save, .paper-preview-open { display: inline-flex; align-items: center; gap: 6px; height: 30px; box-sizing: border-box; padding: 0 12px; border-radius: 999px; font-size: 0.76em; font-weight: 600; line-height: 1; cursor: pointer; text-decoration: none; transition: background 150ms ease, border-color 150ms ease, color 150ms ease; }
.paper-preview-save { border: 1px solid var(--border-medium); background: var(--bg-surface); color: var(--text-muted); font-family: inherit; }
.paper-preview-save:hover:not(:disabled) { border-color: var(--brand-primary); color: var(--brand-primary); }
.paper-preview-save.bookmarked { border-color: var(--brand-primary); color: var(--brand-primary); background: var(--bg-tag); }
.paper-preview-save:disabled { opacity: 0.65; cursor: wait; }
.paper-preview-open { border: 1px solid transparent; background: var(--brand-accent); color: var(--brand-contrast) !important; }
.paper-preview-open:hover { background: var(--brand-primary); text-decoration: none; }
[data-theme="dark"] .paper-preview { box-shadow: 0 1px 2px rgba(0,0,0,0.3), 0 12px 32px rgba(0,0,0,0.5); }
@media (max-width: 560px) {
  .paper-preview.has-figure { width: 380px; }
  .paper-preview-figure { display: none; }
}
.abstract { font-size: 0.95em; line-height: 1.7; color: var(--text-secondary); margin-bottom: 24px; max-width: 720px; }
.ai-label { font-size: 0.55em; font-weight: 500; background: var(--bg-stat); color: var(--text-light); padding: 2px 8px; border-radius: 4px; vertical-align: middle; text-transform: uppercase; letter-spacing: 0.05em; }

.stats-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; align-items: center; }
/* A chip is round, as Althea's chips and badges are. */
.stat { display: inline-block; background: var(--bg-stat); border-radius: var(--tt-radius-full); padding: 2px 10px; font-size: 0.85em; white-space: nowrap; }
.stat-primary { background: var(--bg-tag-cluster); }
.stat-mfp { background: var(--bg-tag-author); }
.tag { display: inline-block; background: var(--bg-tag); border-radius: var(--radius-lg); padding: 1px 10px; font-size: 0.82em; white-space: nowrap; }
.tag-kind { background: var(--bg-tag-kind); }
.tag-cluster { background: var(--bg-tag-cluster); }
.tag-author { background: var(--bg-tag-author); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.grid.grid-single { grid-template-columns: 1fr; }
.card { background: var(--bg-surface); border: 1px solid var(--border-medium); border-radius: var(--radius-md); padding: 16px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 8px; }
.card:hover { border-color: var(--brand-accent); text-decoration: none; }
.card h3 { margin: 0; color: var(--text-main); }
.card p { font-size: 0.88em; color: var(--text-muted); margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.card .muted { color: var(--text-light); }

table { width: 100%; border-collapse: collapse; margin: 8px 0; }
th, td { text-align: left; padding: 5px 10px; border-bottom: 1px solid var(--border-light); font-size: 0.88em; }
th { font-weight: 600; background: var(--bg-subtle); }
.bar { display: inline-block; background: var(--bar-color); height: 12px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }
.muted { color: var(--text-light); font-size: 0.85em; }
.related { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.related a { background: var(--bg-stat); border: 1px solid var(--border-medium); border-radius: 6px; padding: 3px 10px; font-size: 0.85em; }
.related a:hover { background: var(--bg-tag-cluster); text-decoration: none; }
.concept { background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: 6px; padding: 10px 14px; margin: 6px 0; }
.concept .names { font-weight: 600; margin-bottom: 2px; }
.concept .content { font-size: 0.88em; color: var(--text-main); line-height: 1.5; }
.concept .quote { margin: 8px 0 0; padding-left: 12px; border-left: 2px solid var(--brand-accent); font-size: 0.84em; line-height: 1.55; color: var(--text-muted); font-style: italic; }
.concept .meta { font-size: 0.8em; color: var(--text-light); margin-top: 4px; }
.concept .meta a { color: var(--brand-accent); }
.ce-detail td { border-top: none !important; padding-top: 0; }
.ce-detail details summary { cursor: pointer; font-size: 0.85em; color: var(--brand-accent); padding: 2px 0; }
.ce-detail details summary:hover { color: var(--brand-primary); }
.ce-detail .concept { margin: 4px 0; padding: 8px 12px; }
.blog-content { line-height: 1.7; margin: 16px 0; display: flow-root; }
.blog-content h1 { font-family: 'Literata', 'Georgia', serif; font-size: 1.3em; margin: 20px 0 8px; border-bottom: none; }
.blog-content h2, .paper-abstract h2 { font-family: 'Literata', 'Georgia', serif; font-size: 1.1em; margin: 28px 0 6px; border-bottom: none; padding-bottom: 0; }
.blog-content h3 { font-family: 'Literata', 'Georgia', serif; font-size: 1.0em; margin: 12px 0 4px; }
.blog-content p { margin: 8px 0; }
.blog-content .paper-summary-updated { clear: both; margin: 12px 0 0; font-size: 0.85em; line-height: 1.5; color: var(--text-muted); }
.blog-content ul, .blog-content ol { margin: 8px 0 8px 24px; }
.blog-content li { margin: 4px 0; }
.paper-reference { margin-top: 20px; color: var(--text-muted); font-size: 0.88em; }
.blog-content code, .article-content code { font-family: var(--tt-font-code); font-size: 0.88em; background: var(--tt-color-surface-code); padding: 1px 5px; border-radius: var(--radius-sm); overflow-wrap: anywhere; }
.blog-content pre, .article-content pre { margin: 16px 0; padding: 14px 16px; background: var(--tt-color-surface-code); border: 1px solid var(--border-medium); border-radius: var(--radius-md); overflow-x: auto; line-height: 1.55; tab-size: 4; -webkit-text-size-adjust: 100%; }
.blog-content pre code, .article-content pre code { display: block; padding: 0; background: none; border-radius: 0; font-size: 0.82em; white-space: pre; overflow-wrap: normal; color: var(--text-primary); }
.blog-content .codehilite, .article-content .codehilite { margin: 16px 0; }
.blog-content .codehilite pre, .article-content .codehilite pre { margin: 0; }
:root { --code-kw: #8b3fb5; --code-str: #2f7d32; --code-num: #b5530f; --code-fn: #1f5fbf; --code-com: #6e7781; --code-op: #57606a; --code-bi: #0f7a8a; }
:root[data-theme='dark'] { --code-kw: #d2a8ff; --code-str: #9ad59c; --code-num: #f0b072; --code-fn: #8cb9ff; --code-com: #8b949e; --code-op: #a8b0b8; --code-bi: #7fd3dd; }
.codehilite .k, .codehilite .kn, .codehilite .kd, .codehilite .kr, .codehilite .kc, .codehilite .kt, .codehilite .ow { color: var(--code-kw); }
.codehilite .s, .codehilite .s1, .codehilite .s2, .codehilite .sa, .codehilite .sb, .codehilite .sd, .codehilite .se, .codehilite .si, .codehilite .sh, .codehilite .sx { color: var(--code-str); }
.codehilite .m, .codehilite .mi, .codehilite .mf, .codehilite .mh, .codehilite .mo { color: var(--code-num); }
.codehilite .nf, .codehilite .fm, .codehilite .nc, .codehilite .nd { color: var(--code-fn); }
.codehilite .nb, .codehilite .bp { color: var(--code-bi); }
.codehilite .c, .codehilite .c1, .codehilite .cm, .codehilite .ch, .codehilite .cs, .codehilite .cp { color: var(--code-com); font-style: italic; }
.codehilite .o, .codehilite .p { color: var(--code-op); }
.blog-content img { max-width: 100%; height: auto; }
.blog-content figure { width: 100%; margin: 24px auto; max-width: 720px; text-align: center; }
.blog-content figure.paper-figure--panel { max-width: 520px; }
/* A figure a third of the page wide or less sits beside the text, as the paper set it. */
@media (min-width: 641px) { .blog-content figure.paper-figure--panel { float: right; clear: right; width: auto; max-width: 320px; margin: 4px 0 16px 28px; } .blog-content figure:not(.paper-figure--panel) { clear: both; } }
.blog-content figure.paper-figure--standard { max-width: 640px; }
.blog-content figure.paper-figure--wide { max-width: 720px; }
.blog-content figure.paper-figure--legacy { max-width: 720px; }
.blog-content figure img { width: auto; max-width: 100%; height: auto; display: block; margin: 0 auto; border-radius: var(--radius-md); border: 1px solid var(--border-medium); background: #fff; }
.blog-content figure.paper-figure:not(.paper-figure--legacy) img { max-height: 600px; object-fit: contain; }
.blog-content figcaption { font-size: 0.78em; color: var(--text-light); margin-top: 8px; line-height: 1.4; display: inline; }
.article-tikz { margin: 24px auto; max-width: 720px; text-align: center; }
.article-tikz.article-tikz-float { float: right; max-width: 320px; margin: 0 0 20px 28px; text-align: center; clear: right; }
.article-tikz img { width: auto; max-width: 100%; height: auto; display: block; margin: 0 auto; background: #fff; }
.article-tikz figcaption { margin-top: 8px; font-size: 0.72em; line-height: 1.4; color: var(--text-light); display: block; }
@media (max-width: 640px) { .article-tikz.article-tikz-float { float: none; max-width: 720px; margin: 24px auto; } }
.blog-content figure .fig-source { font-size: 0.78em; color: var(--text-light); display: inline; margin-left: 6px; }
.blog-content figure .fig-source a { color: var(--brand-accent); text-decoration: none; }
.blog-content figure .fig-source a:hover { text-decoration: underline; }
.blog-content figure .fig-caption-line { margin-top: 8px; line-height: 1.4; }
.figure-expand-trigger { position: relative; display: block; width: 100%; max-width: 100%; margin: 0 auto; padding: 0; border: 0; border-radius: var(--radius-md); background: transparent; color: inherit; font: inherit; line-height: inherit; cursor: zoom-in; }
.figure-expand-trigger:focus-visible { outline: var(--tt-focus-ring-width) solid var(--tt-color-focus-ring); outline-offset: var(--tt-focus-ring-offset); }
.figure-expand-hint { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; border-radius: 999px; background: rgba(20, 27, 28, 0.88); color: #fff; font: 600 11px/1 'Inter', sans-serif; opacity: 0; pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .figure-expand-trigger:hover .figure-expand-hint, .figure-expand-trigger:focus-visible .figure-expand-hint { opacity: 1; } }
@media (hover: none), (pointer: coarse) { .figure-expand-hint { position: static; display: flex; width: fit-content; margin: 7px auto 0; padding: 2px 0; background: transparent; color: var(--brand-accent); opacity: 1; } }
html.figure-lightbox-open, html.figure-lightbox-open body { overflow: hidden; }
.figure-lightbox { display: none; position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; box-sizing: border-box; margin: 0; padding: clamp(18px, 4vw, 48px); overflow: hidden; border: 0; background: rgba(12, 16, 17, 0.94); color: #fff; z-index: 2000; }
.figure-lightbox[open] { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; place-items: center; gap: 14px; }
.figure-lightbox::backdrop { background: transparent; }
.figure-lightbox img { min-width: 0; min-height: 0; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; background: #fff; }
.figure-lightbox-close { position: absolute; top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0; border: 1px solid rgba(255,255,255,0.32); border-radius: 999px; background: rgba(20,27,28,0.82); color: #fff; font: 300 30px/1 'Inter', sans-serif; cursor: pointer; }
.figure-lightbox-close:focus-visible, #lightbox-original:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.figure-lightbox-footer { display: flex; width: min(900px, calc(100vw - 48px)); min-height: 24px; align-items: baseline; justify-content: center; gap: 16px; color: rgba(255,255,255,0.78); font-size: 0.8em; text-align: center; }
.figure-lightbox-footer a { flex: none; color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) { .figure-lightbox { padding: 56px 16px 18px; } .figure-lightbox-footer { width: 100%; flex-direction: column; align-items: center; gap: 6px; } }
.article-content { line-height: 1.7; overflow: hidden; }
.article-content h1 { font-family: 'Literata', 'Georgia', serif; font-size: 1.6em; margin: 24px 0 12px; border-bottom: none; }
.article-content h2 { font-family: 'Literata', 'Georgia', serif; font-size: 1.25em; margin: 24px 0 8px; }
.article-content h3 { font-family: 'Literata', 'Georgia', serif; font-size: 1.05em; margin: 16px 0 4px; }
.article-content p { margin: 8px 0; }
.article-content ul, .article-content ol { margin: 8px 0 8px 24px; }
.article-content li { margin: 4px 0; }
.article-content table { margin: 12px 0; }
.article-content table th { background: var(--bg-stat); }
.search-form-inline { display: flex; align-items: center; margin: 16px 0; position: relative; width: 100%; }
.search-box { flex: 1; padding: 12px 48px 12px 16px; font-size: 16px; border: 2px solid var(--border-medium); border-radius: 10px; outline: none; font-family: 'Inter', sans-serif; margin: 0; background: var(--bg-surface); color: var(--text-main); }
.search-box:focus { border-color: var(--brand-accent); }
.search-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); background: var(--brand-accent); border: none; border-radius: 8px; padding: 8px 10px; cursor: pointer; color: var(--brand-contrast); display: flex; align-items: center; justify-content: center; transition: background 0.15s ease; }
.search-btn:hover { background: var(--brand-primary); }
.search-filters { display: flex; gap: 8px; margin: 8px 0 16px; flex-wrap: wrap; }
.search-filter { display: inline-block; padding: 6px 16px; border-radius: 20px; font-size: 0.85em; font-weight: 500; color: var(--text-secondary); background: var(--bg-stat); border: 1px solid var(--border-medium); text-decoration: none; transition: all 0.15s ease; }
.search-filter:hover { color: var(--text-primary); border-color: var(--brand-accent); text-decoration: none; }
.search-filter.active { background: var(--brand-accent); color: var(--brand-contrast); border-color: var(--brand-accent); }
.adv-filters { margin: 0 0 16px; }
.adv-filters summary { cursor: pointer; font-size: 0.85em; font-weight: 500; color: var(--brand-accent); user-select: none; padding: 4px 0; }
.adv-filters summary:hover { color: var(--brand-primary); }
.adv-filters-form { padding: 12px 0 4px; }
.adv-filters-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.adv-filters-row label { display: flex; flex-direction: column; gap: 4px; font-size: 0.8em; font-weight: 500; color: var(--text-muted); }
.adv-filters-row input[type=number] { width: 80px; padding: 7px 8px; font-size: 0.92em; border: 1px solid var(--border-medium); border-radius: 6px; font-family: 'Inter', sans-serif; }
.adv-filters-row select { padding: 7px 8px; font-size: 0.92em; border: 1px solid var(--border-medium); border-radius: 6px; font-family: 'Inter', sans-serif; min-width: 140px; }
.adv-date-range { display: flex; align-items: center; gap: 6px; }
.adv-date-range input[type=text] { width: 118px; padding: 7px 8px; font-size: 0.92em; border: 1px solid var(--border-medium); border-radius: 6px; font-family: 'Inter', sans-serif; }
.adv-filters-actions { display: flex; gap: 8px; align-items: flex-end; padding-bottom: 1px; }
.adv-apply-btn { padding: 7px 18px; font-size: 0.85em; font-weight: 500; background: var(--brand-accent); color: var(--brand-contrast); border: none; border-radius: 6px; cursor: pointer; }
.adv-apply-btn:hover { background: var(--brand-primary); }
.adv-clear-btn { padding: 7px 12px; font-size: 0.85em; color: var(--text-muted); text-decoration: none; }
.adv-clear-btn:hover { color: var(--text-primary); }
@media(max-width:640px){.adv-filters-row{flex-direction:column;align-items:stretch}.adv-filters-row input[type=number],.adv-date-range input[type=text]{width:100%}.adv-filters-row select{width:100%}}
.nav-bar { background: var(--bg-surface); border-bottom: 1px solid var(--border-light); padding: 6px 24px; font-family: var(--tt-font-sans); font-size: 0.9em; position: sticky; top: 0; z-index: var(--tt-z-header); display: flex; align-items: center; gap: 12px; min-height: 57px; }
.nav-bar a { margin-right: 0; }
.nav-bar a:hover { text-decoration: none; }
.nav-logo { display: flex; flex: 0 0 auto; align-items: center; text-decoration: none; transition: opacity var(--tt-speed-quick) var(--tt-ease-out-quad); }
.nav-logo:hover { text-decoration: none; opacity: 0.82; }
.nav-logo:focus-visible { border-radius: var(--tt-radius-4); outline: var(--tt-focus-ring-width) solid var(--tt-color-focus-ring); outline-offset: var(--tt-focus-ring-offset); }
.nav-logo img { display: block; height: 28px; width: auto; }
[data-theme="dark"] .nav-logo img { content: url("/assets/lacuna-logo-rgb-dark.svg"); }
.nav-chat-toggle { position: relative; display: inline-flex; min-height: 36px; flex: 0 0 auto; align-items: center; justify-content: center; gap: 8px; padding: 7px 10px; border: 1px solid transparent; border-radius: var(--tt-radius-8); background: transparent; color: var(--text-secondary); cursor: pointer; font: inherit; font-size: 0.86em; font-weight: 600; line-height: 1; transition: background var(--tt-speed-quick) var(--tt-ease-out-quad), border-color var(--tt-speed-quick) var(--tt-ease-out-quad), color var(--tt-speed-quick) var(--tt-ease-out-quad), transform var(--tt-speed-quick) var(--tt-ease-out-quad); }
.nav-chat-toggle:hover { background: var(--bg-subtle); color: var(--text-main); }
.nav-chat-toggle:active { transform: scale(0.97); }
.nav-chat-toggle.is-active, .nav-chat-toggle[aria-expanded="true"] { border-color: var(--border-medium); background: var(--bg-subtle); color: var(--text-main); }
.nav-chat-toggle:focus-visible, .nav-icon-button:focus-visible, .nav-search-btn:focus-visible, .search-mobile-close:focus-visible { outline: var(--tt-focus-ring-width) solid var(--tt-color-focus-ring); outline-offset: var(--tt-focus-ring-offset); }
.nav-chat-toggle[hidden] { display: none; }
.nav-chat-toggle .nav-cta-glyph { display: none; width: 16px; height: 16px; flex: 0 0 16px; }
.nav-chat-label[data-cta-arm] { display: none; }
html:not([data-lacuna-cta]) .nav-chat-label[data-cta-arm="go-deeper"], html[data-lacuna-cta="go-deeper"] .nav-chat-label[data-cta-arm="go-deeper"], html[data-lacuna-cta="ask-about"] .nav-chat-label[data-ask-kind="page"] { display: inline-flex; align-items: center; gap: 6px; }
/* The ask-about arm: a page that names its kind swaps the general label for its own. */
html[data-lacuna-cta="ask-about"]:not([data-lacuna-auth="known"]):has(#lacuna-page-content[data-lacuna-ask="work"]) .nav-chat-label[data-ask-kind="work"], html[data-lacuna-cta="ask-about"]:not([data-lacuna-auth="known"]):has(#lacuna-page-content[data-lacuna-ask="paper"]) .nav-chat-label[data-ask-kind="paper"], html[data-lacuna-cta="ask-about"]:not([data-lacuna-auth="known"]):has(#lacuna-page-content[data-lacuna-ask="author"]) .nav-chat-label[data-ask-kind="author"], html[data-lacuna-cta="ask-about"]:not([data-lacuna-auth="known"]):has(#lacuna-page-content[data-lacuna-ask="direction"]) .nav-chat-label[data-ask-kind="direction"], html[data-lacuna-cta="ask-about"]:not([data-lacuna-auth="known"]):has(#lacuna-page-content[data-lacuna-ask="hypothesis"]) .nav-chat-label[data-ask-kind="hypothesis"], html[data-lacuna-cta="ask-about"]:not([data-lacuna-auth="known"]):has(#lacuna-page-content[data-lacuna-ask="venue"]) .nav-chat-label[data-ask-kind="venue"], html[data-lacuna-cta="ask-about"]:not([data-lacuna-auth="known"]):has(#lacuna-page-content[data-lacuna-ask="institution"]) .nav-chat-label[data-ask-kind="institution"] { display: inline-flex; align-items: center; gap: 6px; }
html[data-lacuna-cta="ask-about"]:not([data-lacuna-auth="known"]):has(#lacuna-page-content[data-lacuna-ask]) .nav-chat-label[data-ask-kind="page"] { display: none; }
html[data-lacuna-auth="known"] .nav-chat-label[data-cta-arm] { display: none; }
html[data-lacuna-auth="known"] .nav-chat-label[data-cta-arm="ask-althea"] { display: inline; }
.nav-chat-tooltip { position: absolute; top: calc(100% + 8px); right: 0; z-index: var(--tt-z-tooltip); width: max-content; max-width: min(220px, calc(100vw - 32px)); padding: 7px 9px; border: 1px solid var(--tt-color-border-translucent); border-radius: var(--tt-radius-8); background: var(--tt-color-surface-tooltip); color: var(--tt-color-text-on-inverse); font-size: 0.76rem; font-weight: 500; line-height: 1.25; pointer-events: none; opacity: 0; visibility: hidden; transform: translateY(-2px); transition: opacity var(--tt-speed-quick) var(--tt-ease-out-quad), transform var(--tt-speed-quick) var(--tt-ease-out-quad), visibility var(--tt-speed-quick) var(--tt-ease-out-quad); }
.nav-chat-tooltip kbd { font-family: var(--tt-font-mono); font-size: 0.94em; }
@media (hover:hover) and (pointer:fine) { .nav-chat-toggle:hover .nav-chat-tooltip, .nav-chat-toggle:focus-visible .nav-chat-tooltip { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0.35s; } }
/* The search stands over the reader column: it starts where a centred column of
   that width starts and is as wide while the controls leave room. The 12px is
   the bar's own gap. */
.nav-start { display: flex; flex: 0 0 auto; align-items: center; width: calc(50% - var(--reader-width) / 2 - 12px); min-width: max-content; }
.nav-end { display: flex; flex: 1 0 auto; align-items: center; justify-content: flex-end; gap: 12px; }
.nav-search { flex: 0 1 var(--reader-width); display: flex; align-items: center; min-width: 180px; position: relative; }
.nav-bar.is-minimal .nav-search { display: none; }
.nav-search-mobile-trigger { display: none; }
.nav-search-form { width: 100%; position: relative; display: flex; align-items: center; }
.nav-search input { width: 100%; height: var(--tt-control-large); box-sizing: border-box; padding: 0 13px 0 42px; font-size: 0.9em; font-family: var(--tt-font-sans); border: 1px solid var(--border-medium); border-radius: var(--tt-radius-12); background: var(--bg-body); color: var(--text-main); outline: none; transition: border-color var(--tt-speed-quick) var(--tt-ease-out-quad), background var(--tt-speed-quick) var(--tt-ease-out-quad); }
.nav-search input::placeholder { color: var(--text-light); }
/* Where a field is too narrow for its hint (a phone), the hint ends in an ellipsis. */
.nav-search input:placeholder-shown, .search-box:placeholder-shown { text-overflow: ellipsis; }
.nav-search input:focus { border-color: var(--tt-color-focus-ring); background: var(--bg-surface); outline: var(--tt-focus-ring-width) solid var(--tt-color-focus-ring); outline-offset: 0; }
.nav-search-btn { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); width: var(--tt-control-small); height: var(--tt-control-small); background: transparent; border: none; padding: 0; cursor: pointer; color: var(--text-light); display: flex; align-items: center; justify-content: center; border-radius: var(--tt-radius-full); transition: color var(--tt-speed-quick) var(--tt-ease-out-quad), background var(--tt-speed-quick) var(--tt-ease-out-quad); }
.nav-search-btn:hover { color: var(--text-main); background: var(--bg-subtle); }
.search-interaction { position: relative; }
.search-dropdown { display: none; position: absolute; top: 100%; left: 0; right: 0; margin-top: 4px; background: var(--bg-surface); border: 1px solid var(--border-medium); border-radius: var(--tt-radius-12); max-height: min(680px, calc(100vh - 96px)); overflow: hidden; flex-direction: column; z-index: var(--tt-z-popover); }
.search-dropdown.active { display: flex; }
/* The rows scroll inside the rounded box, so a scroll bar that takes room is cut to the
   box's corners and not the other way round; the foot stays under the rows. */
.search-dropdown-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.search-dropdown-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; color: var(--text-secondary); text-decoration: none; transition: background 0.1s ease; cursor: pointer; }
.search-dropdown-item:hover, .search-dropdown-item.selected { background: var(--bg-subtle); color: var(--text-main); text-decoration: none; }
.search-dropdown-item .sdi-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; font-size: 0.85em; }
.search-dropdown-item .sdi-meta { flex: 0 0 auto; color: var(--text-light); font-size: 0.75em; white-space: nowrap; }
.search-command-list { padding: 6px; }
.search-command { width: 100%; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px; border: 0; border-radius: 7px; background: transparent; color: var(--text-secondary); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.search-command:hover, .search-command.selected { background: var(--bg-subtle); color: var(--text-main); text-decoration: none; }
.search-command.is-primary { background: color-mix(in srgb, var(--tt-teal-400) 14%, transparent); }
.search-command.is-primary:hover, .search-command.is-primary.selected { background: color-mix(in srgb, var(--tt-teal-400) 22%, transparent); }
.search-command-icon { display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; color: var(--tt-teal-300); }
/* Before a word is typed, Althea's way in is a button on a sunken ground across the list's
   width, 4px in from its top and sides, its corners concentric with the list's (12 - 4).
   Her symbol's centre stands over the centre of the group labels' icons and her words start
   where theirs do; it answers the pointer and the arrow keys with its hairline. */
.search-start-ask { display: flex; padding: 4px 4px 0; }
.search-ask-button { flex: 1 1 auto; display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px 0 8px; border: 1px solid transparent; border-radius: 8px; background: var(--bg-subtle); color: var(--text-main); font: inherit; font-size: 0.875em; font-weight: 500; cursor: pointer; transition: border-color 150ms ease; }
.search-ask-button img { display: block; width: 18px; height: 18px; }
.search-ask-button:hover, .search-ask-button.selected { border-color: var(--text-light); }
.search-ask-button:focus-visible { outline: var(--tt-focus-ring-width) solid var(--tt-color-focus-ring); outline-offset: var(--tt-focus-ring-offset); }
[data-search-start] .search-groups { border-top: 0; }
.search-command-icon img { width: 20px; height: 20px; object-fit: contain; }
.search-command-copy { display: flex; min-width: 0; align-items: baseline; gap: 5px; }
.search-command-label { flex: 0 0 auto; font-size: 0.86em; font-weight: 600; }
.search-command-query { min-width: 0; overflow: hidden; color: var(--text-muted); font-size: 0.84em; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.search-command-meta { color: var(--text-light); font-size: 0.72em; white-space: nowrap; }
/* Results by kind: the one hairline parts them from the two commands; the kinds are set apart by space. */
.search-groups { padding: 2px 0 4px; border-top: 1px solid var(--border-light); }
/* The icon stands on the label's baseline and is moved down until its centre meets the
   middle of the capitals, not the middle of the line. */
.search-group-label { display: flex; align-items: baseline; gap: 8px; padding: 16px 14px 8px; color: var(--text-muted); font-size: 0.72em; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; line-height: 16px; }
/* Between kinds, a hairline as wide as the rows' text (their 14px side padding). */
.search-dropdown-item + .search-group-label { margin: 8px 14px 0; padding: 16px 0 8px; border-top: 1px solid var(--border-light); }
.search-group-label img, .search-group-label svg { display: block; width: 16px; height: 16px; flex: 0 0 16px; transform: translateY(calc(8px - 0.5cap)); }
.search-group-label svg { color: var(--tt-teal-300); }
.search-dropdown-item .sdi-hit { color: var(--text-main); font-weight: 650; }
.search-start-state:first-child { border-top: 0; }
.search-empty-state, .search-start-state { text-align: left; }
.search-empty-state, .search-start-state { display: flex; flex-direction: column; gap: 3px; padding: 16px 14px; border-top: 1px solid var(--border-light); color: var(--text-secondary); font-size: 0.82em; line-height: 1.45; }
.search-empty-state span, .search-start-state span { color: var(--text-light); }
.search-mobile-close { display: none; }
/* The way to every result stays in view while the list scrolls, and rests at the list's end. */
.search-dropdown-footer { flex: 0 0 auto; text-align: center; font-size: 0.8em; color: var(--text-light); border-top: 1px solid var(--border-light); background: var(--bg-surface); }
/* The whole foot is the link, and answers the pointer as the rows do. */
.search-dropdown-footer a { display: block; padding: 10px 14px; color: var(--brand-accent); text-decoration: none; transition: background 0.1s ease; }
.search-dropdown-footer a:hover, .search-dropdown-footer a:focus-visible { background: var(--bg-subtle); color: var(--brand-primary); text-decoration: none; }
[data-lacuna-theme-icon] { display: none; }
html[data-theme-pref="light"] [data-lacuna-theme-icon="sun"], html[data-theme-pref="dark"] [data-lacuna-theme-icon="moon"], html[data-theme-pref="system"] [data-lacuna-theme-icon="system"] { display: block; }
.nav-overflow { display: block; position: relative; flex: 0 0 auto; }
.nav-icon-button { display: inline-flex; width: var(--tt-control-default); height: var(--tt-control-default); align-items: center; justify-content: center; padding: 0; border: 1px solid transparent; border-radius: var(--tt-radius-full); background: transparent; color: var(--text-muted); cursor: pointer; transition: background var(--tt-speed-quick) var(--tt-ease-out-quad), border-color var(--tt-speed-quick) var(--tt-ease-out-quad), color var(--tt-speed-quick) var(--tt-ease-out-quad), transform var(--tt-speed-quick) var(--tt-ease-out-quad); }
.nav-icon-button.nav-search-mobile-trigger { display: none; }
.nav-icon-button:hover, .nav-icon-button[aria-expanded="true"] { border-color: var(--border-light); background: var(--bg-subtle); color: var(--text-main); }
.nav-icon-button:active { transform: scale(0.97); }
.nav-overflow-popover { position: absolute; top: calc(100% + 8px); right: 0; z-index: var(--tt-z-popover); width: 224px; padding: 6px; border: 1px solid var(--border-medium); border-radius: var(--tt-radius-12); background: var(--bg-surface); color: var(--text-main); transform-origin: top right; }
.nav-overflow-popover[hidden] { display: none; }
.nav-overflow-item { display: flex; width: 100%; min-height: 38px; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: var(--tt-radius-6); background: transparent; color: var(--text-main) !important; cursor: pointer; font: inherit; font-size: 0.86em; font-weight: 500; text-align: left; text-decoration: none; transition: background var(--tt-speed-quick) var(--tt-ease-out-quad), transform var(--tt-speed-quick) var(--tt-ease-out-quad); }
.nav-overflow-item:hover { background: var(--bg-subtle); color: var(--text-main) !important; text-decoration: none !important; }
.nav-overflow-item:focus-visible { background: var(--bg-subtle); color: var(--text-main) !important; outline: var(--tt-focus-ring-width) solid var(--tt-color-focus-ring); outline-offset: calc(-1 * var(--tt-focus-ring-width)); text-decoration: none !important; }
.nav-overflow-item:active { transform: scale(0.98); }
.nav-overflow-item svg, .nav-overflow-item img { width: 18px; height: 18px; flex: 0 0 18px; object-fit: contain; }
.nav-mcp-mark { object-fit: contain; }
[data-theme="dark"] .nav-mcp-mark { content: url("/assets/mcp-mark-dark.svg"); }
[data-theme="dark"] .nav-tiptree-mark { content: url("/assets/tiptree-logo-light.svg"); }
.nav-overflow-item-meta { margin-left: auto; color: var(--text-light); font-size: 0.82em; font-weight: 500; text-transform: capitalize; }
.nav-overflow-separator { height: 1px; margin: 5px 6px; background: var(--border-light); }
.nav-cta { display: inline-flex; align-items: center; justify-content: center; padding: 7px 14px; border-radius: var(--tt-radius-full); border: 1px solid transparent; background: var(--tt-teal-600); color: #fff !important; font-size: 0.85em; font-weight: 600; white-space: nowrap; transition: background var(--tt-speed-quick) var(--tt-ease-out-quad), border-color var(--tt-speed-quick) var(--tt-ease-out-quad), transform var(--tt-speed-quick) var(--tt-ease-out-quad); }
.nav-cta:hover, .nav-chat-toggle.nav-cta:hover { background: var(--tt-teal-700); border-color: transparent; color: #fff !important; text-decoration: none !important; }
.nav-chat-toggle.nav-cta.is-active, .nav-chat-toggle.nav-cta[aria-expanded="true"] { background: var(--tt-teal-700); border-color: transparent; color: #fff; }
/* The menu offers Sign in to every reader not known to be signed in: one whose login could
   not be checked still has the way to their account. */
.nav-overflow-signin { display: flex; }
html[data-lacuna-auth="known"] .nav-overflow-signin { display: none; }
.nav-auth-slot { display: inline-flex; flex-shrink: 0; }
.nav-auth-slot[hidden] { display: none; }
.nav-signin { display: inline-flex; min-height: 34px; align-items: center; padding: 6px 14px; border: 1px solid var(--border-medium); border-radius: var(--tt-radius-full); background: transparent; color: var(--text-main) !important; font-size: 0.85em; font-weight: 600; white-space: nowrap; text-decoration: none; transition: background var(--tt-speed-quick) var(--tt-ease-out-quad), transform var(--tt-speed-quick) var(--tt-ease-out-quad); }
.nav-signin:hover { background: var(--bg-subtle); text-decoration: none !important; }
.nav-signin:active { transform: scale(0.98); }
.nav-signin:focus-visible { outline: var(--tt-focus-ring-width) solid var(--tt-color-focus-ring); outline-offset: var(--tt-focus-ring-offset); }
.nav-account { position: relative; flex-shrink: 0; }
.nav-avatar { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: var(--tt-radius-full); background: var(--brand-primary); color: var(--brand-contrast) !important; font-family: inherit; font-size: 0.78em; font-weight: 600; letter-spacing: 0.03em; cursor: pointer; transition: opacity var(--tt-speed-quick) var(--tt-ease-out-quad), transform var(--tt-speed-quick) var(--tt-ease-out-quad); overflow: hidden; }
.nav-avatar:hover, .nav-avatar[aria-expanded="true"] { opacity: 0.85; text-decoration: none !important; }
.nav-avatar:active { transform: scale(0.97); }
.nav-avatar:focus-visible { outline: var(--tt-focus-ring-width) solid var(--tt-color-focus-ring); outline-offset: var(--tt-focus-ring-offset); }
.nav-avatar img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; background: var(--bg-subtle); }
.nav-account-popover { position: absolute; top: calc(100% + 9px); right: 0; z-index: var(--tt-z-popover); width: 196px; padding: 6px; border: 1px solid var(--border-medium); border-radius: var(--tt-radius-12); background: var(--bg-surface); color: var(--text-main); transform-origin: top right; }
.nav-account-popover[hidden] { display: none; }
.nav-account-identity { flex-direction: column; align-items: flex-start; gap: 1px; margin-bottom: 4px; padding: 8px 10px 9px; border-bottom: 1px solid var(--border-light); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.nav-account-name { max-width: 100%; overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.nav-account-caption { color: var(--text-muted); font-size: 0.86em; font-weight: 500; }
.nav-account-item { display: flex; width: 100%; min-height: 36px; align-items: center; padding: 8px 10px; border: 0; border-radius: var(--tt-radius-6); background: transparent; color: var(--text-main) !important; font: inherit; font-size: 0.86em; font-weight: 500; text-align: left; text-decoration: none; cursor: pointer; transition: background var(--tt-speed-quick) var(--tt-ease-out-quad), transform var(--tt-speed-quick) var(--tt-ease-out-quad); }
.nav-account-item:hover { background: var(--bg-subtle); color: var(--text-main) !important; text-decoration: none !important; }
.nav-account-item:focus-visible { background: var(--bg-subtle); color: var(--text-main) !important; outline: var(--tt-focus-ring-width) solid var(--tt-color-focus-ring); outline-offset: calc(-1 * var(--tt-focus-ring-width)); text-decoration: none !important; }
.nav-account-item:active { transform: scale(0.98); }
.nav-account-item[hidden] { display: none; }
.nav-account-signout-form { margin: 0; }
@media (max-width: 640px) {
  .nav-bar { gap: 6px; min-height: 52px; padding: 8px 12px; flex-wrap: nowrap; }
  .nav-logo img { height: 26px; content: url("/assets/lacuna-wordmark.svg"); }
  [data-theme="dark"] .nav-logo img { content: url("/assets/lacuna-wordmark-dark.svg"); }
  .nav-chat-toggle { min-width: 36px; min-height: 36px; padding: 7px 8px; }
  .nav-start { flex: 1 1 auto; width: auto; min-width: 0; }
  .nav-end { flex: 0 0 auto; gap: 6px; }
  .nav-search { display: flex; flex: 0 0 36px; min-width: 36px; max-width: 36px; }
  .nav-bar.is-minimal .nav-search { display: none; }
  .nav-icon-button.nav-search-mobile-trigger { display: inline-flex; }
  .nav-search-form { display: none; }
  .nav-search-form.mobile-search-active { display: grid; }
  .nav-cta { padding: 7px 9px; font-size: 0.82em; }
  .nav-signin { min-height: 32px; padding: 6px 10px; font-size: 0.82em; }
  .nav-chat-toggle .nav-chat-label { display: none !important; }
  .nav-chat-toggle .nav-cta-glyph { display: block; width: 18px; height: 18px; flex-basis: 18px; }
  body.lacuna-search-mobile-open { overflow: hidden; }
  .search-interaction.mobile-search-active { position: fixed !important; top: var(--lacuna-search-viewport-top, 0); left: 0; right: 0; z-index: 500; width: 100%; max-width: none; height: var(--lacuna-search-viewport-height, 100dvh); margin: 0; padding: max(12px, env(safe-area-inset-top)) 12px max(8px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto minmax(0, 1fr); align-items: center; gap: 10px; background: var(--bg-surface); }
  .search-interaction.mobile-search-active input { grid-column: 1; grid-row: 1; width: 100%; height: 44px; min-width: 0; margin: 0; padding: 10px 14px; border: 1px solid var(--border-medium); border-radius: var(--tt-radius-12); background: var(--bg-body); color: var(--text-main); font-size: 16px; }
  .search-interaction.mobile-search-active input::placeholder { color: var(--text-light); }
  .search-interaction.mobile-search-active .nav-search-btn,
  .search-interaction.mobile-search-active .search-btn { display: none; }
  .search-interaction.mobile-search-active .search-mobile-close { grid-column: 2; grid-row: 1; display: inline-flex; min-height: 44px; align-items: center; padding: 0 4px; border: 0; background: transparent; color: var(--tt-teal-300); font: inherit; font-size: 0.88em; font-weight: 600; cursor: pointer; }
  .search-interaction.mobile-search-active .search-dropdown { grid-column: 1 / -1; grid-row: 2; position: static; align-self: stretch; display: block; margin: 0; border-width: 1px 0 0; border-radius: 0; box-shadow: none; max-height: none; overflow-y: auto; background: transparent; }
  .search-interaction.mobile-search-active .search-dropdown-scroll { overflow: visible; }
  .search-interaction.mobile-search-active .search-dropdown-footer { position: sticky; bottom: 0; }
  .search-command { min-height: 50px; padding: 11px 8px; }
  .search-start-ask { padding: 4px 0 0; }
  .search-command-list { padding: 6px 0; }
  .search-ask-button { height: 44px; padding: 0 12px 0 6px; }
  .search-group-label { padding-left: 8px; padding-right: 8px; }
  .search-dropdown-item + .search-group-label { margin: 8px 8px 0; padding-left: 0; padding-right: 0; }
  .search-command-copy { flex-direction: column; align-items: stretch; gap: 1px; }
  .search-command-query { width: 100%; }
  .search-command-meta { display: none; }
  .search-dropdown-item { min-height: 48px; padding: 11px 8px; }
  .search-dropdown-item .sdi-meta { display: none; }
}
@media (max-width: 420px) {
  .nav-logo img { height: 23px; }
}
.site-footer { border-top: 1px solid var(--border-medium); background: var(--bg-subtle); margin-top: 64px; padding: 40px 24px 24px; }
.site-footer-content { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; max-width: 1100px; margin: 0 auto; }
.site-footer-section { display: flex; flex-direction: column; }
.site-footer-section:first-child { align-items: flex-start; text-align: left; }
.site-footer-section:nth-child(2) { align-items: center; text-align: center; }
.site-footer-section:last-child { align-items: flex-end; text-align: right; }
.site-footer-section h2 { margin: 0 0 12px; font-size: 0.8em; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); padding: 0; border: 0; }
.site-footer-section ul { list-style: none; margin: 0; padding: 0; }
.site-footer-section li { margin-bottom: 8px; }
.site-footer-section a { color: var(--text-muted); font-size: 0.9em; text-decoration: none; transition: color 0.15s ease; }
.site-footer-section a:hover { color: var(--brand-primary); text-decoration: underline; }
.site-footer-bottom { max-width: 1100px; margin: 32px auto 0; padding-top: 20px; border-top: 1px solid var(--border-medium); }
.site-footer-bottom p { margin: 0; font-size: 0.82em; color: var(--text-light); }
@media (max-width: 640px) { .site-footer { margin-top: 40px; padding: 32px 16px 20px; } .site-footer-content { grid-template-columns: 1fr; gap: 24px; } .site-footer-section, .site-footer-section:first-child, .site-footer-section:nth-child(2), .site-footer-section:last-child { align-items: center; text-align: center; } }
.cluster-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.cluster-links a { background: var(--bg-stat); border: 1px solid var(--border-medium); border-radius: 6px; padding: 3px 10px; font-size: 0.85em; }
.directions-table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.directions-table td { padding: 8px 12px; border-bottom: 1px solid var(--border-light); font-size: 0.9em; }
.directions-table td:last-child { text-align: right; white-space: nowrap; }
.directions-table tr:last-child td { border-bottom: none; }
.directions-table a { color: var(--brand-accent); text-decoration: none; }
.directions-table a:hover { text-decoration: underline; }
.link-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.btn-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid var(--border-medium); background: var(--bg-surface); border-radius: var(--radius-sm); cursor: pointer; color: var(--text-muted); transition: all 0.2s; padding: 0; }
.btn-icon svg { width: 18px; height: 18px; display: block; flex: 0 0 18px; }
.btn-icon .btn-icon-label { font-size: 10px; letter-spacing: 0.02em; font-weight: 700; line-height: 1; }
.btn-icon:hover { text-decoration: none; border-color: var(--brand-accent); color: var(--brand-primary); }
.btn-icon.active, .btn-icon[aria-pressed=true] { border-color: var(--brand-primary); color: var(--brand-primary); background: var(--bg-tag); }
blockquote { font-family: 'Literata', 'Georgia', serif; font-style: italic; border-left: 3px solid var(--brand-accent); padding-left: 16px; margin: 12px 0; color: var(--text-muted); }
.identity-card { background: var(--bg-surface); border: 1px solid var(--border-medium); border-radius: 10px; padding: 24px 20px 20px; margin: 0 0 12px; text-align: center; }
.author-card-name { font-family: 'Literata', 'Georgia', serif; font-size: 1.5em; font-weight: 700; margin: 0 0 4px; }
.author-pic { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; display: block; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.identity-card .affiliation { font-weight: 400; color: var(--text-muted); font-size: 0.82em; margin: 2px 0 12px; text-align: center; }
.quick-stats { display: flex; justify-content: center; background: transparent; border: 0; border-top: 1px solid var(--border-light); border-radius: 0; padding: 16px 0 0; margin: 16px 0 14px; }
.quick-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; line-height: 1.3; }
.quick-stat-val { font-weight: 700; color: var(--text-main); font-size: 1.2em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.quick-stat-lbl { font-size: 0.72em; color: var(--text-muted); text-transform: none; letter-spacing: 0.04em; }
.interest-tag { display: inline-block; padding: 4px 10px; border-radius: 6px; margin: 3px; font-size: 0.82em; color: var(--text-main); font-weight: 500; }
.author-profile-generated { margin: 0 0 24px; }
.author-profile-generated p { margin: 0 0 16px; line-height: 1.7; font-size: 1.05em; color: var(--text-main); }
.author-profile-generated h2 { margin-top: 32px; font-weight: 700; font-family: 'Literata', 'Georgia', serif; font-size: 1.35em; color: var(--text-main); }
.author-profile-generated h3 { margin-top: 24px; font-weight: 600; font-family: 'Literata', 'Georgia', serif; font-size: 1.15em; }
.author-profile-generated .author-profile-updated { margin: 4px 0 0; font-size: 0.85em; line-height: 1.5; color: var(--text-muted); }
.author-profile-coverage-note { margin: 0 0 24px; padding: 16px 18px; background: var(--bg-subtle); border: 1px solid var(--border-medium); border-left: 3px solid var(--brand-accent); border-radius: var(--radius-md); }
.author-profile-coverage-note h2 { margin: 0 0 5px; padding: 0; border: 0; font-family: 'Inter', sans-serif; font-size: 0.9em; font-weight: 700; color: var(--text-main); }
.author-profile-coverage-note p { margin: 0; color: var(--text-muted); font-size: 0.9em; line-height: 1.6; }
.external-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.external-links a { display: inline-flex; align-items: center; gap: 4px; background: transparent; border: 1px solid var(--border-light); border-radius: 999px; padding: 6px 12px; color: var(--link-color); font-size: 0.82em; font-weight: 500; box-shadow: none; transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 120ms cubic-bezier(0.23,1,0.32,1); }
.external-links a:hover { border-color: var(--link-color); color: var(--link-color); box-shadow: none; text-decoration: none; }
.external-links a:active { transform: scale(.97); }
/* The format badges and share buttons are one row of 30px squares, whether rendered as a link or a button. */
.external-links a.btn-icon { padding: 0; border: 1px solid var(--border-medium); border-radius: var(--radius-sm); color: var(--text-muted); font-size: 1em; }
.external-links a.btn-icon:hover { border-color: var(--brand-accent); color: var(--brand-primary); }
.external-link-icon { width: 12px; height: 12px; opacity: 0.6; }
.sidebar .fingerprint { grid-template-columns: 1fr; }
.sidebar .fp-section { padding: 12px; }




.fingerprint { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 12px 0; min-width: 0; }
@media (max-width: 700px) { .fingerprint { grid-template-columns: 1fr; } }
.fp-section { background: var(--bg-surface); border: 1px solid var(--border-medium); border-radius: 8px; padding: 12px 16px; min-width: 0; overflow: hidden; }
.fp-section h3 { font-size: 0.95em; margin-bottom: 8px; }
.fp-bar-row { display: flex; align-items: center; justify-content: space-between; font-size: 0.84em; }
.fp-bar-row .fp-label { flex: 1; min-width: 0; font-size: 0.84em; color: var(--text-main); line-height: 1.3; }
.fp-bar-row .fp-count { color: var(--text-light); font-size: 0.82em; flex-shrink: 0; }
.sidebar-section { padding: 0; margin: 24px 0 16px; }
.sidebar-section > h3 { font-family: 'Inter', sans-serif; font-size: 0.85em; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 16px 0; padding-bottom: 8px; border-bottom: 1px solid var(--border-medium); }
.sidebar .fp-section { padding: 0; border: none; }
.sidebar .fp-section h4 { font-family: 'Inter', sans-serif; font-size: 0.85em; font-weight: 700; color: var(--text-main); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; border-bottom: none; }
.sidebar .fp-bar-row { margin: 2px 0; }
.neighbors { display: flex; flex-direction: column; margin: 8px 0; }
.author-neighbors-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.author-neighbors-grid .neighbor-card { background: var(--bg-surface); border: 1px solid var(--border-medium); border-bottom: none; border-radius: var(--radius-md); padding: 12px 14px; }
.author-neighbors-grid .neighbor-card:last-child { border-bottom: none; }
.author-neighbors-grid .neighbor-card:hover { border-color: var(--brand-accent); opacity: 1; }
.author-top-areas { display: flex; flex-wrap: wrap; gap: 8px; }
.author-top-areas .interest-tag { margin: 0; background: var(--bg-stat); border: 1px solid var(--border-medium); }
.author-header-subsection { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border-medium); }
.author-header-subsection h3 { margin: 0 0 10px; font-size: 0.9em; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.author-reader-links { justify-content: center; }
@media (max-width: 640px) {
  .author-neighbors-grid { grid-template-columns: 1fr; }
}
.neighbor-card { display: flex; flex-direction: column; padding: 6px 0; border-bottom: 1px solid var(--border-medium); text-decoration: none; color: inherit; transition: opacity 0.15s ease; }
.neighbor-card:last-child { border-bottom: none; }
.neighbor-card:hover { opacity: 0.8; text-decoration: none; }
.neighbor-card .nb-name { font-weight: 500; font-size: 0.9em; color: var(--brand-primary); }
.neighbor-card .nb-score { font-size: 0.78em; color: var(--text-light); }
.venue-proposals-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 4px 0 12px; }
.venue-proposals-search { flex: 1 1 280px; max-width: 520px; min-width: 0; padding: 8px 12px; border: 1px solid var(--border-medium); border-radius: 8px; background: var(--bg-surface); color: var(--text-main); font: inherit; font-size: 0.92em; }
.venue-proposals-search:focus { outline: none; border-color: var(--brand-primary); }
.venue-proposals { display: flex; flex-direction: column; gap: 8px; }
.card.venue-proposal-card { gap: 4px; padding: 12px 18px; }
.card.venue-proposal-card[hidden] { display: none; }
.venue-proposal-card h3 { font-size: 1em; line-height: 1.35; }
.venue-proposal-card h3 a { color: var(--text-main); }
.venue-proposal-card .card-subtitle { font-size: 0.86em; color: var(--text-muted); line-height: 1.5; }
.venue-proposal-sources { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-top: 4px; font-size: 0.82em; line-height: 1.45; }
.venue-proposal-sources ul { flex: 1 1 0; min-width: 0; margin: 0; padding-left: 16px; }
.venue-proposal-sources li { margin: 1px 0; }
.venue-proposals-more { margin-top: 10px; padding: 7px 14px; border: 1px solid var(--border-medium); border-radius: 8px; background: var(--bg-surface); color: var(--brand-primary); font: inherit; font-size: 0.9em; font-weight: 500; cursor: pointer; }
.venue-proposals-more[hidden] { display: none; }
.edition-header { margin: 0 0 20px; }
.edition-header p { margin: 0 0 4px; }
.edition-name { font-size: 1.15em; font-weight: 500; color: var(--text-main); }
.edition-meta { color: var(--text-muted); font-size: 0.92em; }
.edition-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px !important; }
.edition-link { display: inline-block; padding: 3px 10px; border: 1px solid var(--border-medium); border-radius: 999px; font-size: 0.85em; }
.edition-theme-layout { display: grid; grid-template-columns: minmax(220px, 320px) minmax(0, 1fr); gap: 20px; align-items: stretch; margin: 8px 0 28px; }
@media (max-width: 860px) { .edition-theme-layout { grid-template-columns: 1fr; gap: 14px; } }
.edition-theme-chips { display: flex; flex-direction: column; align-items: stretch; gap: 5px; }
@media (max-width: 860px) { .edition-theme-chips { flex-direction: row; flex-wrap: wrap; } }
.edition-chip { --c: var(--tc, var(--brand-primary)); display: flex; align-items: center; gap: 9px; min-width: 0; text-align: left; padding: 5px 12px; border: 1px solid var(--border-medium); border-radius: 999px; background: var(--bg-surface); color: var(--text-main); font: inherit; font-size: 0.84em; line-height: 1.3; cursor: pointer; transition: background 0.12s ease, border-color 0.12s ease; }
[data-theme="dark"] .edition-chip { --c: var(--tcd, var(--brand-primary)); }
.edition-chip-name { flex: 1 1 auto; min-width: 0; }
.edition-chip-count { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.edition-chip:hover, .edition-chip.preview { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, var(--bg-surface)); }
.edition-chip[aria-pressed="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 22%, var(--bg-surface)); font-weight: 600; }
.edition-chip[aria-pressed="true"] .edition-chip-count { color: var(--text-main); }
.edition-swatch { --c: var(--tc); flex: none; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); vertical-align: 0; }
[data-theme="dark"] .edition-swatch { --c: var(--tcd); }
.edition-map-figure { margin: 0; display: flex; flex-direction: column; min-width: 0; }
.edition-map { position: relative; flex: 1 1 auto; min-height: 320px; box-sizing: border-box; background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--radius-md); }
@media (max-width: 860px) { .edition-map { flex: none; min-height: 0; height: min(70vw, 440px); } }
.edition-map-inner { position: absolute; inset: 22px; }
.edition-dot { --c: var(--tc, var(--brand-primary)); position: absolute; display: block; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%; color: var(--text-main); text-decoration: none; }
[data-theme="dark"] .edition-dot { --c: var(--tcd, var(--brand-primary)); }
.edition-dot::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px var(--bg-surface); transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease; }
.edition-dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; }
.edition-dot:hover, .edition-dot:focus-visible { z-index: 6; }
.edition-dot:hover::before, .edition-dot:focus-visible::before { transform: scale(1.45); }
.edition-themes:not([data-active=""]) .edition-dot:not(.on)::before { background: var(--text-light); opacity: 0.3; }
.edition-themes:not([data-active=""]) .edition-dot.on { z-index: 2; }
.edition-themes:not([data-active=""]) .edition-dot.on::before { transform: scale(1.3); }
.edition-themes:not([data-active=""]) .edition-dot.on:hover::before { transform: scale(1.45); }
.edition-dot-label { position: absolute; left: 50%; bottom: calc(100% + 9px); transform: translateX(-50%); width: max-content; max-width: 260px; padding: 6px 9px; border-radius: 8px; background: var(--bg-surface); border: 1px solid var(--border-medium); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18); font-size: 0.8rem; line-height: 1.35; text-align: left; white-space: normal; opacity: 0; visibility: hidden; transition: opacity 0.12s ease; pointer-events: none; }
.edition-dot:hover .edition-dot-label, .edition-dot:focus-visible .edition-dot-label { opacity: 1; visibility: visible; }
.edition-dot-left .edition-dot-label { left: auto; right: -4px; transform: none; }
.edition-dot-right .edition-dot-label { left: -4px; transform: none; }
.edition-dot-below .edition-dot-label { bottom: auto; top: calc(100% + 9px); }
.edition-dot-label-title { display: block; }
.edition-dot-label-theme { display: block; margin-top: 2px; font-size: 0.72rem; color: var(--c); }
.edition-map-figure figcaption { font-size: 0.82em; margin-top: 6px; }
.edition-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 24px 0 8px; padding-bottom: 4px; border-bottom: 1px solid var(--border-medium); }
.edition-section-head h2 { flex: 1 1 auto; margin: 0; padding: 0; border: 0; }
.edition-reset { font: inherit; font-size: 0.84em; padding: 3px 10px; border: 1px solid var(--border-medium); border-radius: 999px; background: var(--bg-surface); color: var(--text-main); cursor: pointer; }
.edition-reset:hover { border-color: var(--brand-primary); }
.edition-breakout { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.card.edition-breakout-card { gap: 4px; padding: 12px 18px 14px; }
.card.edition-breakout-card[hidden], .edition-paper-group[hidden] { display: none; }
.edition-breakout-head { display: flex; gap: 8px; align-items: center; font-size: 0.78em; text-transform: uppercase; letter-spacing: 0.04em; }
.edition-breakout-theme { color: var(--text-muted); }
.edition-breakout-theme { flex: 1 1 auto; min-width: 0; }
.edition-badge { --c: var(--tc); flex: none; padding: 1px 8px; border-radius: 999px; font-size: 0.86em; letter-spacing: 0.05em; color: var(--text-main); background: color-mix(in srgb, var(--c) 18%, var(--bg-surface)); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); }
[data-theme="dark"] .edition-badge { --c: var(--tcd); }
.edition-badge-alternate { background: var(--bg-subtle); border-color: var(--border-medium); color: var(--text-muted); }
.edition-more { margin: 0 0 28px; }
.edition-more[hidden] { display: none; }
.edition-more-head { font-size: 0.95em; margin: 0 0 8px; padding-bottom: 4px; border-bottom: 1px solid var(--border-medium); }
.edition-more-list { list-style: none; margin: 0; padding: 0; }
.edition-more-list li { display: flex; gap: 10px; align-items: baseline; margin: 0; padding: 6px 0; border-bottom: 1px solid var(--border-light); font-size: 0.9em; line-height: 1.4; }
.edition-more-list li[hidden] { display: none; }
.edition-swatches { flex: none; display: inline-flex; gap: 3px; align-items: center; transform: translateY(-1px); }
.edition-swatches .edition-swatch { width: 8px; height: 8px; }
.edition-breakout-card h3 { font-size: 1em; line-height: 1.35; margin: 2px 0 0; }
.edition-breakout-card h3 a { color: var(--text-main); }
.edition-breakout-card .card-subtitle { font-size: 0.85em; color: var(--text-muted); line-height: 1.5; }
.edition-papers { display: flex; flex-direction: column; }
.edition-paper-group { margin: 0 0 22px; }
.edition-paper-group h3 { display: flex; align-items: center; gap: 8px; font-size: 0.95em; margin: 0 0 6px; padding-bottom: 4px; border-bottom: 1px solid var(--border-medium); }
.edition-paper-group ul { list-style: none; margin: 0; padding: 0; }
.edition-paper-group li { margin: 0; padding: 7px 0; border-bottom: 1px solid var(--border-light); font-size: 0.9em; line-height: 1.4; }
.edition-paper-authors { font-size: 0.86em; margin-top: 1px; }
.impact-row { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--border-light); font-size: 0.88em; }
.impact-row:last-child { border-bottom: none; }
.impact-rank { font-weight: 600; color: var(--text-light); min-width: 20px; }
.impact-name { flex: 1; min-width: 0; }
.impact-name a { font-weight: 500; }
.impact-metrics { display: flex; gap: 6px; flex-shrink: 0; }
.impact-chip { display: inline-block; padding: 1px 8px; border-radius: var(--radius-sm); font-size: 0.82em; white-space: nowrap; }
.impact-gravity-pos { background: #d1fae5; color: #065f46; }
.impact-gravity-neg { background: #fee2e2; color: #991b1b; }
.impact-nucleation { background: #dbeafe; color: #1e40af; }
.impact-temporal { background: #fef3c7; color: #92400e; }
.impact-years { color: var(--text-light); font-size: 0.8em; }
.impact-card { background: var(--bg-surface); border: 1px solid var(--border-medium); border-radius: var(--radius-md); padding: 10px 14px; margin: 6px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.impact-elements-toggle { border: 0; font-family: inherit; color: inherit; cursor: pointer; background: var(--bg-stat); }
.impact-elements-toggle::after { content: " ▾"; }
.impact-elements-toggle[aria-expanded="true"]::after { content: " ▴"; }
.impact-elements-toggle:hover { color: var(--brand-accent); }
.impact-elements { flex-basis: 100%; border-top: 1px solid var(--border-light); padding-top: 8px; }
.impact-card:hover { border-color: var(--brand-accent); text-decoration: none; }
.impact-card .ic-cluster { flex: 1; min-width: 0; }
.impact-card .ic-cluster a { font-weight: 500; }
.author-pagination { margin: 18px 0 2px; }
.author-pagination > a, .author-pagination-spacer { min-width: 78px; }
.author-pagination > a:first-child { text-align: right; }
.author-pagination > a:last-child { text-align: left; }
@keyframes skeleton-pulse { 0%,100%{opacity:.15} 50%{opacity:.35} }
.skeleton-fade { animation: skeleton-pulse 1.4s ease-in-out infinite; }
.skeleton-pill { background: var(--border-medium); border-radius: 999px; color: transparent !important; pointer-events: none; }
.explore-hero { background: linear-gradient(135deg, var(--bg-subtle) 0%, var(--bg-body) 100%); border: 1px solid var(--border-medium); border-radius: var(--radius-lg); padding: 22px 24px; margin-bottom: 18px; }
.explore-eyebrow { font-size: 0.74em; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); font-weight: 700; margin-bottom: 8px; }
.explore-intro { max-width: 760px; color: var(--text-muted); font-size: 0.95em; }
.explore-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 18px 0 18px; }
.explore-summary-card { background: var(--bg-surface); border: 1px solid var(--border-medium); border-radius: var(--radius-md); padding: 14px 16px; color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: 4px; min-height: 92px; }
.explore-summary-card:hover { border-color: var(--brand-accent); text-decoration: none; transform: translateY(-1px); }
.explore-summary-card.active { background: var(--bg-subtle); border-color: var(--brand-accent); }
.explore-summary-value { font-family: 'Literata', 'Georgia', serif; font-size: 1.45em; color: var(--text-main); line-height: 1.1; }
.explore-summary-label { font-size: 0.8em; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); font-weight: 700; }
.explore-summary-meta { font-size: 0.83em; color: var(--text-light); }
/* Sorting by kind, one control for the two places that do it: Explore's row, whose
   component this is with its own measures, and the homepage's tabs, which use it as it
   stands, but for the open kind's look (below). */
.kind-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.kind-tab { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--border-medium); border-radius: 999px; background: var(--bg-surface); color: var(--text-muted); font-size: 0.88em; font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer; }
.kind-tab svg { width: 16px; height: 16px; }
@media (max-width: 900px) { .kind-tab { padding: 6px 10px; font-size: 0.85em; gap: 5px; } .kind-tab svg { width: 14px; height: 14px; } }
.kind-tab:hover { border-color: var(--brand-accent); color: var(--brand-primary); text-decoration: none; }
/* The open kind is marked as chosen, not drawn as the page's primary button (which is the
   filled teal): a tint of the teal for its ground, the teal for its stroke and its words. */
.kind-tab.active, .kind-tab[aria-selected="true"] { background: color-mix(in srgb, var(--brand-primary) 12%, var(--bg-surface)); border-color: var(--brand-primary); color: var(--brand-primary); }
.kind-tab:focus-visible { outline: var(--tt-focus-ring-width) solid var(--tt-color-focus-ring); outline-offset: var(--tt-focus-ring-offset); }
.explore-switcher { margin: 4px 0 18px; }
.explore-switch-count { font-size: 0.82em; opacity: 0.85; }
.explore-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 10px 0 16px; }
.explore-section-head h2 { margin: 0; border: none; padding: 0; }
.explore-title-missing { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--border-medium); border-radius: var(--radius-md); background: var(--bg-surface); }
.explore-title-missing p { margin: 0; min-width: 0; overflow-wrap: anywhere; flex: 1 1 100%; }
.title-missing-claim { display: inline-flex; align-items: center; gap: 10px; }
.title-missing-claim form { margin: 0; }
.explore-question-ask { box-sizing: border-box; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px 8px 12px; border: 1px solid var(--border-medium); border-radius: var(--radius-md); background: var(--bg-surface); color: var(--text-primary); font: inherit; font-weight: 600; cursor: pointer; }
.explore-question-ask:hover { border-color: var(--link-color); }
.explore-question-ask:focus-visible { outline: var(--tt-focus-ring-width) solid var(--tt-color-focus-ring); outline-offset: var(--tt-focus-ring-offset); }
.explore-section-kicker { font-size: 0.74em; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); font-weight: 700; margin-bottom: 6px; }
.explore-results-groups { display: flex; flex-direction: column; gap: 28px; }
.explore-result-group { min-width: 0; }
.explore-result-group-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 10px; }
.explore-result-group-head h3 { display: flex; align-items: center; gap: 7px; margin: 0; color: var(--text-main); font-family: 'Inter', sans-serif; font-size: .96em; font-weight: 700; }
.explore-result-group-head h3 svg { flex: 0 0 auto; }
.explore-result-group-link { flex: 0 0 auto; color: var(--brand-accent); font-size: .82em; font-weight: 600; text-decoration: none; }
.explore-result-group-link:hover { text-decoration: underline; }
.explore-results-note { margin: 18px 0 0; }
.explore-card { min-height: 0; }
.explore-card:hover { border-color: var(--border-light); text-decoration: none; transform: none; box-shadow: none; }
.explore-card h3 { line-height: 1.35; }
.explore-card .card-subtitle { display: block; font-size: 0.86em; color: var(--text-muted); margin-top: -2px; line-height: 1.55; }
.explore-card .card-subtitle a { display: inline; color: var(--brand-accent); }
.explore-card .tag { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.explore-card .stat { max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.grid:not(.grid-single) > .explore-card > p:last-child { margin-top: auto; }
.explore-card-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 14px; }
.explore-card-head h3 { flex: 1 1 18em; min-width: 0; }
.explore-card-stats { display: inline-flex; flex-wrap: wrap; gap: 6px; font-size: 0.88em; color: var(--text-muted); }
.grid-single .explore-card { padding: 12px 16px; gap: 4px; }

/* Research artifacts */
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.artifact-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; width: 100%; grid-column: 1 / -1; }
.artifact-list-compact { grid-template-columns: 1fr; gap: 8px; }
.artifact-card { display: flex; flex-direction: column; min-width: 0; padding: 16px; border: 1px solid var(--border-medium); border-radius: var(--radius-md); background: var(--bg-surface); box-shadow: 0 1px 2px rgba(0,0,0,.025); transition: transform .14s ease; }
.artifact-card h3 { margin: 5px 0 7px; padding: 0; border: 0; font-family: 'Inter', sans-serif; font-size: 1em; line-height: 1.35; overflow-wrap: break-word; }
.artifact-card h3 a { color: var(--brand-primary); text-decoration: none; }
.resource-provider-link { display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; color: var(--brand-primary); text-decoration: none; }
.resource-provider-mark { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; flex: 0 0 17px; color: currentColor; font-size: 14px; line-height: 1; vertical-align: -3px; }
.resource-provider-mark svg { display: block; width: 16px; height: 16px; }
.resource-provider-letter { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border: 1px solid currentColor; border-radius: 50%; font-size: 9px; font-weight: 750; }
.resource-provider-name { flex: 0 0 auto; color: var(--text-light); font-size: .72em; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
.resource-link-title { min-width: 0; overflow-wrap: anywhere; }
.resource-provider-link-compact { align-items: center; justify-content: center; width: 24px; height: 24px; gap: 0; border: 1px solid var(--border-light); border-radius: 5px; background: var(--bg-surface); color: var(--text-muted); }
.resource-provider-link-compact .resource-provider-name { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.paper-resource-links { display: inline-flex; align-items: center; flex: 0 0 auto; flex-wrap: nowrap; gap: 4px; margin-left: 7px; vertical-align: middle; }
.paper-work-versions { margin: 14px 0 16px; padding: 12px; border: 1px solid var(--border-medium); border-radius: var(--radius-md); background: var(--bg-subtle); }
.paper-work-versions h2 { margin: 0 0 10px; padding: 0; border: 0; font-size: .9em; letter-spacing: .02em; }
.paper-work-version-list { display: grid; gap: 8px; }
.paper-work-version-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; padding: 12px 14px; border: 1px solid var(--border-medium); border-radius: var(--radius-md); background: var(--bg-surface); color: inherit; text-decoration: none; }
.paper-work-version-card:hover { border-color: var(--brand-accent); text-decoration: none; }
.paper-work-version-card[aria-current="page"] { border-color: var(--brand-accent); background: var(--bg-subtle); }
.paper-work-version-title { min-width: 0; color: var(--brand-primary); font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }
.paper-work-version-meta { grid-column: 1; color: var(--text-light); font-size: .78em; }
.paper-work-version-badge { grid-column: 2; grid-row: 1 / span 2; align-self: center; padding: 3px 8px; border-radius: 999px; background: var(--brand-primary); color: var(--brand-contrast); font-size: .7em; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.paper-revision-notice { margin: 0 0 10px; padding: 8px 12px; border-left: 3px solid var(--brand-accent); border-radius: var(--radius-md); background: var(--bg-subtle); color: var(--text-muted); font-size: .9em; }
.paper-cite { margin: 14px 0; width: fit-content; max-width: 100%; }
.paper-cite[open] { width: auto; max-width: 680px; }
.paper-cite > summary { display: inline-flex; align-items: center; gap: 8px; padding: 3px 12px; border: 1px solid var(--border-medium); border-radius: 999px; color: var(--text-muted); font-size: .85em; cursor: pointer; list-style: none; }
.paper-cite > summary::-webkit-details-marker { display: none; }
.paper-cite > summary::before { content: ""; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
.paper-cite[open] > summary::before { transform: rotate(45deg); }
.paper-cite > summary:hover { border-color: var(--brand-accent); color: var(--brand-primary); }
.paper-cite[open] > summary { margin-bottom: 8px; }
.external-links:has(> .paper-cite--inline) { position: relative; }
.paper-cite--inline { margin: 0; }
.paper-cite__toggle svg { transition: transform .15s; }
.paper-cite__toggle[aria-expanded="true"] { border-color: var(--brand-primary); color: var(--brand-primary); }
.paper-cite__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.paper-cite__panel { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; width: min(680px, 100%); box-sizing: border-box; padding: 10px; border: 1px solid var(--border-medium); border-radius: var(--radius-md); background: var(--bg-surface); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.paper-cite__panel[hidden] { display: none; }
.paper-cite-copy .paper-action__done, .paper-cite-copy.is-copied .paper-action__icon { display: none; }
.paper-cite-copy.is-copied .paper-action__done { display: inline-flex; color: var(--brand-primary); }
/* The paper's row of actions. Reading the paper leads it as the one outlined control, the
   secondary to the header's filled button; the others are named and quiet, like the
   header's plain controls. */
.paper-actions { position: relative; justify-content: space-between; gap: 8px 16px; margin: 16px 0; font-size: 1em; }
.paper-actions__read { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.paper-read, .external-links a.paper-read { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border: 1px solid var(--border-medium); border-radius: var(--tt-radius-full); background: var(--bg-surface); color: var(--text-main); font: inherit; font-size: 0.8125em; font-weight: 600; line-height: 14px; white-space: nowrap; cursor: pointer; text-decoration: none; transition: background var(--tt-speed-quick) var(--tt-ease-out-quad), border-color var(--tt-speed-quick) var(--tt-ease-out-quad), color var(--tt-speed-quick) var(--tt-ease-out-quad), transform var(--tt-speed-quick) var(--tt-ease-out-quad); }
.paper-read:hover, .external-links a.paper-read:hover { border-color: var(--text-light); background: var(--bg-subtle); color: var(--text-main); text-decoration: none; }
/* While the pane is open the control shows it. */
.paper-read[aria-pressed="true"] { border-color: var(--brand-primary); background: var(--bg-tag); color: var(--brand-primary); }
.paper-read:active { transform: scale(0.98); }
.paper-read svg { display: block; width: 16px; height: 16px; flex: 0 0 16px; }
/* The arrow of a link that leaves is as tall as the capitals. */
.paper-read svg:last-child:not(:first-child) { width: 1cap; height: 1cap; flex-basis: 1cap; }
.external-links a.paper-source-link { display: inline; padding: 0; border: 0; border-radius: 0; background: none; font-size: 0.8125em; font-weight: 500; }
.external-links a.paper-source-link:hover { border: 0; text-decoration: underline; }
/* In the row of actions the source's link is one of its controls: the quiet ones' box (8px
   either side, the row's height, their ground on hover), in the link's own colour. */
.external-links .paper-actions__read a.paper-source-link { box-sizing: border-box; display: inline-flex; align-items: center; min-height: var(--tt-control-default); padding: 9px 8px; border: 1px solid transparent; border-radius: var(--tt-radius-full); line-height: 14px; }
.external-links .paper-actions__read a.paper-source-link:hover { border: 1px solid var(--border-light); background: var(--bg-subtle); text-decoration: none; }
/* The quiet controls stand at the row's right while it holds both groups; where it cannot,
   they take the next line from the left, and wrap there from the left if they must. */
.paper-actions .share-group { gap: 0; margin-left: 0; margin-right: -8px; flex-wrap: wrap; justify-content: flex-start; }
/* Close set: 8px either side of each, none between them, so their words stand 16px apart. */
.paper-actions .share-group .paper-action, .paper-actions .share-group .bookmark-btn { padding-left: 8px; padding-right: 8px; }
/* On the row's right their words end on the column's edge, so their menu does too. */
.paper-actions .share-group .row-menu { right: 8px; }
/* After the paper's text and over the related tabs: Althea as her own home has her (her
   mark beside a short line in the serif) over her box at the column's width, its starters
   always shown. A rule over it, the tab
   bar's own (2px, the medium border), sets it apart from the text above; the tabs' rule
   closes it below. */
.paper-end { margin: 40px 0 56px; padding-top: 56px; border-top: 2px solid var(--border-medium); }
/* Under the paper's text, one row: the ways to the paper at the left, its citation's pill at
   the right; opened, the citation runs the column's width under the row. Where the row
   cannot hold both (a phone), the citation takes the next line from the left. */
.paper-after { position: relative; margin: 24px 0 0; min-height: var(--tt-control-default); }
.paper-after .paper-after-read { position: absolute; top: 0; left: 0; margin: 0; }
.paper-after .paper-cite, .paper-after .paper-cite[open] { width: auto; max-width: none; margin: 0; padding-top: 3px; text-align: right; }
.paper-after .paper-cite > :not(summary) { text-align: left; }
@media (max-width: 640px) {
  .paper-after .paper-after-read { position: static; margin: 0 0 12px; }
  .paper-after .paper-cite, .paper-after .paper-cite[open] { padding-top: 0; text-align: left; }
}
.paper-end-althea[hidden] { display: none; }
/* Her mark and her line stand centred over her box, as at her home in Althea. */
.paper-end-greeting { display: flex; align-items: flex-start; justify-content: center; gap: 12px; margin: 0 0 32px; text-align: center; }
.paper-end-mark { position: relative; flex: 0 0 36px; width: 36px; height: 36px; color: var(--tt-color-accent); }
.paper-end-mark.is-live { cursor: pointer; }
/* Her mark at rest and her dots at rest are one drawing in her ink (the accent): the still
   is the symbol as a mask, and the player's paths take its place where they stand. Her
   dots move out past the mark's edges. */
.paper-end-mark-still { display: block; width: 100%; height: 100%; background: currentColor; -webkit-mask: url('/assets/althea-symbol.svg') center / contain no-repeat; mask: url('/assets/althea-symbol.svg') center / contain no-repeat; }
.paper-end-mark .althea-swarm-mark { display: block; width: 100%; height: 100%; overflow: visible; }
.paper-end-mark .althea-swarm-mark > path { fill: currentColor; }
.paper-end-line { margin: 0; padding-top: 4px; color: var(--text-main); font-family: 'Literata', Georgia, serif; font-size: 1.25em; font-weight: 400; line-height: 1.4; }
.paper-end-ask[hidden] { display: none; }
/* On a phone her mark stands over her line, as at her home there. */
@media (max-width: 640px) { .paper-end { margin-bottom: 40px; padding-top: 40px; } .paper-end-greeting { flex-direction: column; align-items: center; gap: 8px; margin-bottom: 24px; } .paper-end-line { padding-top: 0; } }
.paper-end-ask .pdf-ask-box { width: 100%; }
/* Where the two groups would not fit one line the row's script sets the quiet controls
   to their icons alone: round, 36px, their words kept for a screen reader and
   shown as tips; the last icon ends on the column's edge. */
.paper-actions[data-compact] .share-group { margin-right: -10px; }
.paper-actions[data-compact] .share-group .paper-action, .paper-actions[data-compact] .share-group .bookmark-btn { gap: 0; padding: 9px; }
.paper-actions[data-compact] .share-group .rl-label, .paper-actions[data-compact] .share-group .paper-action > span:not(.paper-action__icon):not(.paper-action__done) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.paper-actions[data-compact] .share-group .row-menu { right: 10px; }
/* The Save control's panel is wider than what is left to its right there: it hangs from the
   group's right edge. */
.paper-actions[data-compact] .share-group { position: relative; }
.paper-actions[data-compact] .share-group .rl-wrap { position: static; }
.paper-actions[data-compact] .share-group .rl-pop { left: auto; right: 10px; max-width: calc(100vw - 32px); box-sizing: border-box; }
/* On a line of their own their boxes start where the lead's does, and the menu opens from
   that edge under them. */
.paper-actions[data-wrapped] .share-group { position: relative; margin-right: 0; }
.paper-actions[data-wrapped] .share-group .row-menu-wrap { position: static; }
.paper-actions[data-wrapped] .share-group .row-menu { right: auto; left: 0; }
/* As icons on a line of their own (a phone whose first line the lead and its source fill):
   from the left, and their panels with them. */
.paper-actions[data-wrapped][data-compact] .share-group { margin-right: 0; }
.paper-actions[data-wrapped][data-compact] .share-group .row-menu, .paper-actions[data-wrapped][data-compact] .share-group .rl-pop { right: auto; left: 0; }
/* A link among the row's quiet controls (the Markdown view) is drawn exactly as they are. */
.paper-action, .external-links a.paper-action, .paper-actions .bookmark-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border: 1px solid transparent; border-radius: var(--tt-radius-full); background: transparent; color: var(--text-muted); font: inherit; font-size: 0.8125em; font-weight: 500; line-height: 16px; white-space: nowrap; cursor: pointer; transition: background var(--tt-speed-quick) var(--tt-ease-out-quad), border-color var(--tt-speed-quick) var(--tt-ease-out-quad), color var(--tt-speed-quick) var(--tt-ease-out-quad); }
.paper-action:hover, .external-links a.paper-action:hover, .paper-action[aria-expanded="true"], .paper-actions .bookmark-btn:hover { border-color: var(--border-light); background: var(--bg-subtle); color: var(--text-main); }
.paper-actions .bookmark-btn.on { border-color: transparent; background: var(--bg-tag); color: var(--brand-primary); }
.paper-action svg, .paper-actions .bookmark-btn svg { display: block; width: 16px; height: 16px; flex: 0 0 16px; }
.paper-action__icon, .paper-action__done { display: inline-flex; }
.paper-read:focus-visible, .paper-action:focus-visible, .paper-actions .bookmark-btn:focus-visible { outline: var(--tt-focus-ring-width) solid var(--tt-color-focus-ring); outline-offset: var(--tt-focus-ring-offset); }
/* On a phone the four quiet controls do not fit one line: they wrap. */
@media (max-width: 640px) { .page-narrow > .external-links.paper-actions .share-group { flex-wrap: wrap; } }
/* The save prompt's one button: round, on the scale's large step. */
.or-pop .or-signin-btn { min-height: var(--tt-control-large); border-radius: var(--tt-radius-full); }
.paper-cite__bibtex { margin: 0 0 8px; padding: 12px 14px; border: 1px solid var(--border-medium); border-radius: var(--radius-md); background: var(--bg-subtle); font-size: .82em; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.paper-cite__copy { padding: 4px 12px; border: 1px solid var(--border-medium); border-radius: 999px; background: var(--bg-surface); color: var(--brand-primary); font: inherit; font-size: .85em; cursor: pointer; }
.paper-cite__copy:hover { border-color: var(--brand-accent); }
.author-paper-title { display: flex; align-items: flex-end; flex-wrap: nowrap; width: 100%; }
.author-paper-title > a { flex: 1 1 auto; min-width: 0; }
.author-paper-title--withdrawn > span:first-child { flex: 1 1 auto; min-width: 0; color: var(--text-muted); }
.author-publication-actions { display: inline-flex; align-items: center; gap: 8px; margin-left: 10px; font-size: .8em; white-space: nowrap; }
.author-publication-status { color: var(--text-light); font-style: italic; }
.author-publication-action { color: var(--brand-primary); }
button.author-publication-action { padding: 1px 8px; border: 1px solid var(--border-medium); border-radius: 999px; background: var(--bg-surface); font: inherit; font-size: inherit; cursor: pointer; }
button.author-publication-action:hover { border-color: var(--brand-accent); }
button.author-publication-action:disabled { opacity: .5; cursor: default; }
.author-paper-table-wrap,
.author-resource-table-wrap { max-width: 100%; overflow-x: auto; }
.author-paper-table,
.author-resource-table { min-width: 640px; }
@media (max-width: 640px) {
  .author-card-corner { position: static; justify-content: flex-end; margin-bottom: 6px; }
  /* Paper table becomes rows: title, then venue and year underneath. */
  .author-paper-table-wrap { overflow-x: visible; }
  .author-paper-table { min-width: 0; width: 100%; }
  .author-paper-table thead { display: none; }
  .author-paper-table tbody { display: block; }
  .author-paper-table tr { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border-light); }
  .author-paper-table td { display: block; padding: 0; border: 0; }
  .author-paper-table td:first-child { grid-column: 1 / -1; margin-bottom: 3px; }
  .author-paper-table td:nth-child(2), .author-paper-table td:nth-child(3) { grid-row: 2; font-size: 0.85em; color: var(--text-muted); }
  .author-paper-table td:nth-child(3) { grid-column: 2; }
  .tab-bar { overflow-x: auto; scrollbar-width: none; }
  .tab-bar::-webkit-scrollbar { display: none; }
  .tab-btn { flex: 0 0 auto; white-space: nowrap; }
}
.author-resource-table { table-layout: fixed; }
.author-resource-table th:nth-child(1) { width: 76%; }
.author-resource-table th:nth-child(2) { width: 14%; }
.author-resource-table th:nth-child(3) { width: 10%; }
.author-resource-table td { vertical-align: top; }
.author-resource-table td:nth-child(2),
.author-resource-table td:nth-child(3) { white-space: nowrap; }
.author-resource-paper-link { display: block; line-height: 1.45; }
.author-resource-links { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.author-resource-paper-cell .author-resource-links { margin-top: 7px; }
.author-resource-links .resource-provider-link { line-height: 1.35; }
.artifact-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-height: 18px; color: var(--text-light); font-size: .72em; font-weight: 650; letter-spacing: .055em; text-transform: uppercase; }
.artifact-meta > span { display: inline-flex; align-items: center; }
.artifact-meta > span:nth-child(even) { opacity: .55; }
.artifact-provider { color: var(--text-muted); }
.artifact-description { margin: 0 0 12px; color: var(--text-muted); font-size: .87em; line-height: 1.55; }
.artifact-stats { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--text-light); font-size: .78em; font-variant-numeric: tabular-nums; }
.artifact-stats > span { display: inline-flex; align-items: center; }
.artifact-stats > span:nth-child(even) { opacity: .55; }
.artifact-card-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-top: auto; padding-top: 14px; font-size: .8em; }
.artifact-card-footer a { color: var(--brand-accent); text-decoration: none; white-space: nowrap; }
.resource-context-link { color: var(--text-light); font-size: .82em; text-decoration: none; white-space: nowrap; }
.artifact-evidence-label { margin-right: auto; color: var(--text-muted); }
.artifact-linked-papers { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border-light); font-size: .8em; }
.artifact-linked-papers > span { color: var(--text-light); font-size: .88em; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.artifact-linked-papers a { overflow: hidden; color: var(--text-muted); text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.artifact-list-compact .artifact-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 13px 14px; }
.artifact-list-compact .artifact-meta,
.artifact-list-compact .artifact-card h3,
.artifact-list-compact .artifact-stats { grid-column: 1; }
.artifact-list-compact .artifact-card-footer { grid-column: 2; grid-row: 1 / span 3; align-content: center; align-items: flex-end; flex-direction: column; justify-content: center; margin: 0; padding: 0; }
.paper-artifacts { margin: 26px 0 28px; padding: 18px; border: 1px solid var(--border-medium); border-radius: var(--radius-lg); background: var(--bg-subtle); }
.paper-artifacts-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.paper-artifacts-heading h2 { margin: 0; padding: 0; border: 0; font-size: 1.12em; }
.paper-artifacts-heading p { margin: 0; color: var(--text-light); font-size: .8em; text-align: right; }
.artifact-detail-page { max-width: 860px; }
.mixed-resource-card h3 { font-family: 'Inter', sans-serif; font-size: 1em; }
.mixed-resource-card > .resource-context-link { margin-top: auto; align-self: flex-start; }
.artifact-detail-header { position: relative; padding: 0 0 24px; border-bottom: 1px solid var(--border-medium); }
.artifact-detail-header h1 { margin: 8px 0 10px; padding: 0; border: 0; overflow-wrap: break-word; }
.artifact-detail-description { max-width: 720px; margin: 0 0 14px; color: var(--text-muted); font-size: 1em; line-height: 1.65; }
.artifact-topics { display: flex; flex-wrap: wrap; gap: 6px; margin: 15px 0 0; }
.artifact-topics span { padding: 3px 9px; border: 1px solid var(--border-light); border-radius: 999px; background: var(--bg-surface); color: var(--text-muted); font-size: .76em; }
.artifact-primary-action { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 9px 14px; border-radius: 7px; background: var(--brand-primary); color: var(--brand-contrast) !important; font-size: .86em; font-weight: 650; text-decoration: none !important; transition: transform .12s ease; }
.artifact-primary-action:active { transform: scale(.97); }
.artifact-detail-section { margin: 30px 0; }
.artifact-detail-section > h2 { margin: 0 0 12px; }
.artifact-people { overflow: hidden; border: 1px solid var(--border-medium); border-radius: var(--radius-md); background: var(--bg-surface); }
.artifact-person-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border-bottom: 1px solid var(--border-light); }
.artifact-person-row:last-child { border-bottom: 0; }
.artifact-person-row > div { display: flex; flex-direction: column; min-width: 0; }
.artifact-person-row > div > a { font-weight: 600; }
.artifact-person-row > div > span,
.artifact-person-row > span { color: var(--text-light); font-size: .8em; }
.artifact-person-row > span { flex-shrink: 0; }
.artifact-paper-row { padding: 16px 0; border-bottom: 1px solid var(--border-medium); }
.artifact-paper-row:last-child { border-bottom: 0; }
.artifact-paper-row h3 { margin: 3px 0 4px; padding: 0; border: 0; font-size: 1em; }
.artifact-paper-kind { color: var(--text-muted); font-size: .7em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.artifact-paper-meta { margin: 0; color: var(--text-light); font-size: .8em; }
.artifact-evidence-disclosure { margin-top: 9px; color: var(--text-muted); font-size: .82em; }
.artifact-evidence-disclosure summary { width: max-content; max-width: 100%; color: var(--text-light); cursor: pointer; }
.artifact-evidence { margin-top: 10px; padding: 11px 13px; border-left: 2px solid var(--brand-accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--bg-subtle); }
.artifact-evidence strong { color: var(--text-muted); font-size: .78em; }
.artifact-evidence p { margin: 5px 0 0; color: var(--text-muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .74em; line-height: 1.55; }
.artifact-evidence-source { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; color: var(--text-light); font-size: .72em; }
.artifact-evidence-source a { text-decoration: none; }
.artifact-directions { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.artifact-directions a { display: flex; flex-direction: column; gap: 3px; padding: 12px 13px; border: 1px solid var(--border-medium); border-radius: var(--radius-md); background: var(--bg-surface); color: inherit; text-decoration: none; transition: transform .14s ease; }
.artifact-directions a strong { color: var(--brand-primary); font-size: .88em; line-height: 1.35; }
.artifact-directions a span { color: var(--text-light); font-size: .75em; }
@media (hover:hover) {
  .artifact-card:hover,
  .artifact-directions a:hover { transform: translateY(-1px); border-color: var(--brand-accent); text-decoration: none; }
  .artifact-card h3 a:hover,
  .artifact-card-footer a:hover,
  .artifact-linked-papers a:hover,
  .resource-provider-link:hover,
  .resource-context-link:hover { text-decoration: underline; }
}
@media (max-width:640px) {
  .artifact-list { grid-template-columns: 1fr; }
  .artifact-list-compact .artifact-card { display: flex; gap: 2px; }
  .artifact-list-compact .artifact-card-footer { align-items: flex-start; flex-direction: row; justify-content: flex-start; margin-top: 8px; padding-top: 8px; }
  .paper-artifacts { padding: 14px; }
  .paper-artifacts-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .paper-artifacts-heading p { text-align: left; }
  .artifact-person-row { align-items: flex-start; flex-direction: column; gap: 5px; }
  .author-resource-table-wrap { overflow: visible; }
  .author-resource-table { display: block; min-width: 0; width: 100%; }
  .author-resource-table thead { display: none; }
  .author-resource-table tbody { display: block; }
  .author-resource-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 13px 0; border-bottom: 1px solid var(--border-medium); }
  .author-resource-table tr:last-child { border-bottom: 0; }
  .author-resource-table td { display: block; min-width: 0; padding: 0; border: 0; }
  .author-resource-table .author-resource-paper-cell { grid-column: 1 / -1; }
  .author-resource-table .author-resource-paper-link { font-weight: 600; }
  .author-resource-table .author-resource-links,
  .author-resource-table .resource-provider-link { max-width: 100%; }
  .author-resource-table .author-resource-meta-cell { display: inline-flex; align-items: baseline; color: var(--text-muted); font-size: .82em; }
  .author-resource-table .author-resource-meta-cell::before { content: attr(data-label); margin-right: 5px; color: var(--text-light); font-size: .72em; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
  .author-resource-table .author-resource-meta-cell:empty { display: none; }
}

/* Editorial homepage */
.home-announce-banner { display: flex; align-items: center; justify-content: center; gap: 10px; max-width: 920px; margin: 18px auto 0; padding: 10px 16px; border: 1px solid var(--border-light); border-radius: 10px; background: var(--surface-raised, transparent); color: var(--text-primary); text-decoration: none; font-size: 0.92em; line-height: 1.4; }
.home-announce-logo { height: 22px; width: auto; flex-shrink: 0; }
[data-theme="dark"] .home-announce-logo { filter: invert(1) hue-rotate(180deg); }
.home-announce-label { font-weight: 600; color: var(--brand-accent); letter-spacing: 0.02em; white-space: nowrap; }
.home-announce-palm { font-size: 16px; line-height: 1; }
.home-announce-palm-last { margin-right: 14px; }
.home-announce-flag { height: 14px; width: auto; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,0.08); vertical-align: middle; flex-shrink: 0; }
.home-announce-text { color: var(--text-muted); }
.home-announce-arrow { color: var(--brand-accent); font-weight: 600; }
@media (max-width: 560px) { .home-announce-banner { flex-wrap: wrap; gap: 6px 10px; font-size: 0.88em; } .home-announce-text { flex-basis: 100%; text-align: center; } }
.home-hero { margin: 34px auto 24px; padding: 40px 0 34px; background: transparent; border: none; border-radius: 0; text-align: center; }
.home-hero-inner { max-width: 920px; margin: 0 auto; }
.home-hero-brand { margin: 0 auto 10px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.home-hero-logo { width: clamp(82px, 10vw, 118px); height: auto; display: block; margin: 0 auto; filter: drop-shadow(0 8px 18px rgba(0,0,0,0.08)); }
.home-hero-wordmark { width: clamp(190px, 22vw, 260px); height: auto; display: block; margin: 0 auto; color: #1a1a1a; }
.home-hero-logo-shape-1 { fill: #82a7a9; }
.home-hero-logo-shape-2 { fill: #47696b; }
.home-hero-logo-shape-3 { fill: #1a1a1a; }
[data-theme="dark"] .home-hero-wordmark { color: #ffffff; }
[data-theme="dark"] .home-hero-logo-shape-2 { fill: #c8dcdc; }
[data-theme="dark"] .home-hero-logo-shape-3 { fill: #ffffff; }
/* The top of the homepage: the heading is the largest thing on the first screen (the
   header carries the brand), one steady line under it, then the search. */
.home-hero-title { max-width: 920px; margin: 0 auto 12px; font-size: clamp(1.625rem, 1.05rem + 2vw, 2.25rem); line-height: 1.2; font-weight: 500; letter-spacing: -0.01em; color: var(--text-main); text-wrap: balance; }
.home-hero-note { max-width: 720px; margin: 0 auto 28px; font-size: 1rem; line-height: 28px; color: var(--text-muted); text-wrap: balance; }
/* Althea's logo in the line, in her name's place, set off by a round hairline at the
   site's small control height (28px, which is also the line's): the wordmark stands on
   the words' baseline, a little larger than they are, and her symbol centres on their
   capitals. */
.home-hero-note-althea { display: inline-block; box-sizing: border-box; height: 28px; margin: 0 1px; padding: 0 11px 0 8px; border: 1px solid var(--border-light); border-radius: 999px; background: var(--bg-surface); font: inherit; line-height: 26px; color: var(--text-main); white-space: nowrap; vertical-align: baseline; cursor: pointer; transition: border-color 150ms ease, transform 150ms ease; }
.home-hero-note-althea-symbol { display: inline-block; width: 18px; height: 18px; margin-right: 6px; vertical-align: -3px; background: var(--tt-color-accent); -webkit-mask: url('/assets/althea-symbol.svg') center / contain no-repeat; mask: url('/assets/althea-symbol.svg') center / contain no-repeat; }
.home-hero-note-althea-word { display: inline-block; width: 52px; height: 14px; vertical-align: baseline; background: currentColor; -webkit-mask: url('/assets/althea-wordmark-white.svg') left bottom / contain no-repeat; mask: url('/assets/althea-wordmark-white.svg') left bottom / contain no-repeat; }
/* At rest the chip's hairline is the quiet one; under the pointer it takes the ink's
   contrast, and nothing else changes. A press gives a little, as the count cards do. */
@media (hover: hover) and (pointer: fine) { .home-hero-note-althea:hover { border-color: var(--text-light); } }
.home-hero-note-althea:active { transform: scale(.97); border-color: var(--text-main); }
.home-hero-note-althea:focus-visible { outline: var(--tt-focus-ring-width) solid var(--tt-color-focus-ring); outline-offset: var(--tt-focus-ring-offset); }
.home-hero-search { max-width: 720px; margin: 0 auto 14px; }
.home-hero-search .search-box { height: 56px; padding: 14px 60px 14px 18px; border-radius: 8px; font-size: 1.02em; }
.home-hero-search .search-btn { right: 6px; border-radius: 8px; padding: 10px 12px; }
/* The box stands with the same room under it as over it (the line above it ends 28px
   over the box); the date stands 12px under the chips. */
.home-hero-search { margin-bottom: 28px; }
/* Who builds Lacuna: one quiet line under the search; the people are behind a press. */
.home-built { max-width: 720px; margin: -12px auto 0; font-size: 0.875rem; line-height: 22px; color: var(--text-muted); text-align: center; text-wrap: balance; }
.home-built-open { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 8px; margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
/* Tiptree Systems as the company's website sets it in its header: the logomark before the
   name, the mark 21 high to the name's 18, the name medium and set close. Here in the
   line's own size, so the proportions are in em; both take the main ink. The name stands
   closer to the mark than in the header (6px, where the header's proportion gives 9): in
   a sentence the two must read as one name. */
.home-built-marks { display: inline-flex; align-items: center; gap: 6px; color: var(--text-main); }
.home-built-marks .tiptree-logomark { display: block; flex: none; width: auto; height: 1.167em; }
.home-built-name { color: var(--text-main); font-weight: 500; letter-spacing: -0.03em; }
.home-built-half { display: inline-flex; align-items: center; gap: 8px; }
/* The researchers' faces: 20px rounds, each a third over the one before, ringed in the page's
   ground so they read apart; the first lies on top. */
.home-built-faces { display: inline-flex; align-items: center; padding-left: 7px; }
.home-built-faces img { position: relative; display: block; flex: none; width: 20px; height: 20px; margin-left: -7px; border-radius: 50%; object-fit: cover; background: var(--bg-subtle); box-shadow: 0 0 0 1.5px var(--bg-body); }
/* The link's words are underlined at rest, so the line says it can be pressed; over it they
   take the main ink. */
.home-built-open .home-built-words { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.home-built-open:hover .home-built-words { color: var(--text-main); }
.home-built-open:focus-visible { outline: var(--tt-focus-ring-width) solid var(--tt-color-focus-ring); outline-offset: var(--tt-focus-ring-offset); border-radius: 4px; }
.home-built-dialog { width: calc(100% - 32px); max-width: 520px; box-sizing: border-box; text-align: left; }
/* On a short screen the people scroll between the head and the two buttons, which stay in view. */
.home-built-dialog[open] { display: flex; flex-direction: column; max-height: calc(100dvh - 32px); overflow: hidden; }
.home-built-dialog > * { flex: none; }
.home-built-dialog h2:focus { outline: none; }
.home-built-dialog > .home-built-people { display: grid; flex: 0 1 auto; gap: 16px; min-height: 0; margin: 16px 0 32px; padding: 0; overflow-y: auto; list-style: none; scrollbar-width: thin; scrollbar-color: var(--border-medium) transparent; }
/* A drawn scrollbar, where the browser lets a page draw one, so the list says it goes on. */
.home-built-dialog > .home-built-people::-webkit-scrollbar { -webkit-appearance: none; width: 4px; }
.home-built-dialog > .home-built-people::-webkit-scrollbar-thumb { border-radius: 2px; background: var(--border-medium); }
/* On a phone the dialog gives the people the room: the heading is left to screen readers, and
   the buttons stand on a fade over the list's foot, so the next person shows through it rather
   than being cut off by a solid block. The list's own padding lets its last person scroll clear
   of the fade. */
@media (max-width: 520px) {
  .home-built-dialog h2 { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .home-built-dialog > .home-built-people { margin: 0; padding-bottom: 32px; }
  .home-built-dialog > .author-claim-actions { position: relative; margin-top: -32px; padding-top: 32px; background: linear-gradient(to bottom, transparent, var(--bg-surface) 32px); }
}
.home-built-person { display: flex; align-items: center; gap: 14px; min-width: 0; }
.home-built-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.home-built-who a, .home-built-name { font-size: 0.9375rem; font-weight: 600; line-height: 1.35; color: var(--text-main); }
.home-built-who a { color: var(--brand-primary); text-decoration: none; }
.home-built-who a:hover { text-decoration: underline; text-underline-offset: 3px; }
.home-built-credentials { font-size: 0.8125rem; line-height: 18px; color: var(--text-muted); }
.home-built-person .home-portrait { width: 48px; height: 48px; }
.home-built-person .home-portrait-initials { font-size: 1rem; }
.home-search-hint { position: absolute; left: 20px; right: 64px; top: 50%; transform: translateY(-50%); height: 1.4em; overflow: hidden; pointer-events: none; text-align: left; color: var(--text-light); font-family: 'Inter', sans-serif; font-size: 1.02em; line-height: 1.4em; }
.home-search-hint-text { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: transform 260ms cubic-bezier(0.23,1,0.32,1), opacity 260ms ease; }
.home-search-hint-text.is-leaving { transform: translateY(-100%); opacity: 0; }
.home-search-hint-text.is-entering { transform: translateY(100%); opacity: 0; transition: none; }
/* The homepage's tabs (the .kind-tab control, with each kind's count) start on the
   content's left edge, and the day of the last update stands at the row's right end. The
   hero above ends with the search box. */
section.home-hero { padding-bottom: 0; margin-bottom: 20px; }
/* What is Althea's is told from the neutral chips by its hairline: a soft tint of her
   accent at rest, her accent itself under the pointer. Her logo in the line above the
   search, her questions under the featured paper, her reading of the latest papers. */
.home-hero-note-althea, .home-piece-starter, .home-new-near { border-color: color-mix(in srgb, var(--tt-color-accent) 45%, var(--bg-surface)); }
@media (hover: hover) and (pointer: fine) { .home-hero-note-althea:hover, .home-piece-starter:hover, .home-new-near:hover { border-color: var(--tt-color-accent); } }
.home-hero-note-althea:active, .home-piece-starter:active, .home-new-near:active { border-color: var(--tt-color-accent); }
/* The row stands as far under the search box as the heading stands under the header. */
.home-tabs-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 98px 0 16px; }
/* The tabs and the link are one wrapping line: the tab list's own box is not drawn. */
.home-tabs-row .home-ways { display: contents; }
/* The way out to Explore: the page's text button (the paper page's "View on arXiv"), at the
   row's right end. Its words end on the content's right edge; its hover box reaches past it. */
.home-explore-all { box-sizing: border-box; display: inline-flex; align-items: center; gap: 0.3em; min-height: var(--tt-control-default); margin-left: auto; margin-right: -8px; padding: 9px 8px; border: 1px solid transparent; border-radius: var(--tt-radius-full); font-size: 0.8125rem; font-weight: 500; line-height: 14px; text-decoration: none; white-space: nowrap; }
.home-explore-all:hover { border-color: var(--border-light); background: var(--bg-subtle); text-decoration: none; }
.home-explore-all:focus-visible { outline: var(--tt-focus-ring-width) solid var(--tt-color-focus-ring); outline-offset: var(--tt-focus-ring-offset); }
@media (max-width: 768px) { .home-tabs-row { margin-top: 76px; } }
@media (max-width: 480px) { .home-tabs-row { margin-top: 64px; } }
.home-way-count, .home-way-compact { font-variant-numeric: tabular-nums; }
.home-way-compact { display: none; }
@media (max-width: 640px) {
  .home-way-count { display: none; }
  .home-way-compact { display: inline; }
  .home-way img { display: none; }
}
/* Under the tabs: a wide column of pieces to go deeper into (two thirds) and a narrow one
   with the kind's running list (one third). On a phone they are one column: the leading
   piece, the list, then the rest. */
/* The panels answer to their own width (a container), so the layout under them follows the
   page's column and not the window: with Althea's pane open the two differ. */
.home-panels { margin: 0 0 32px; container: home-panels / inline-size; }
.home-panel[hidden] { display: none; }
.home-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.home-pieces { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.home-side { min-width: 0; }
.home-piece-lead, .home-piece-list, .home-side-block { background: var(--bg-surface); border: 1px solid var(--border-medium); border-radius: var(--radius-md); }
.home-piece-lead { display: flex; flex-direction: column; gap: 12px; padding: 24px; overflow: hidden; }
/* A paper's cover, edge to edge at the card's head: its own figure on white, or one of
   the neutral covers, in a box of one height so the picks keep one rhythm. */
.home-piece-lead > .home-piece-figure, .home-cover { height: 240px; margin: -24px -24px 8px; border-bottom: 1px solid var(--border-light); }
.home-piece-lead > .home-piece-figure { display: flex; align-items: center; justify-content: center; padding: 16px 24px; background: #fff; }
.home-cover { background: var(--bg-subtle); }
.home-cover svg { display: block; width: 100%; height: 100%; }
.home-cover-defs { position: absolute; }
/* A block's three faces. Each is one class of its own with its colour in a property the
   cover hands down, since a rule that names an ancestor does not reach a drawing used from
   a symbol in every browser. */
.home-cover { --home-cover-t: #a9c6c7; --home-cover-l: #6f9597; --home-cover-r: #47696b; }
[data-theme="dark"] .home-cover { --home-cover-t: #5e8587; --home-cover-l: #3d5f61; --home-cover-r: #2c4648; }
.home-cover-t { fill: var(--home-cover-t); } .home-cover-l { fill: var(--home-cover-l); } .home-cover-r { fill: var(--home-cover-r); }
/* An author's portrait beside the name: the photo, or the initials. */
.home-piece-who { display: flex; align-items: center; gap: 20px; }
.home-piece-who-words { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.home-portrait { display: grid; place-items: center; flex: none; width: 72px; height: 72px; overflow: hidden; border: 1px solid var(--border-medium); border-radius: 50%; background: var(--bg-subtle); }
.home-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-portrait-initials { border-color: transparent; font-family: 'Literata', 'Georgia', serif; font-size: 1.5rem; font-weight: 500; line-height: 1; color: var(--brand-primary); }
/* The editor's picks: one column of full pieces, 24px apart. */
.home-picks { gap: 16px; }
.home-picks .home-deck-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
.home-piece .kicker, .home-side-block .kicker { display: block; margin: 0; padding: 0; border: 0; font-family: inherit; font-size: 0.72em; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); font-weight: 700; }
.home-piece-title { margin: 0; padding: 0; border: 0; font-family: 'Literata', 'Georgia', serif; font-weight: 600; line-height: 1.3; text-wrap: balance; }
.home-piece-lead .home-piece-title { font-size: 1.5rem; }
.home-piece-list .home-piece-title { font-size: 1.125rem; }
/* A piece's title is its link, and wears the link's teal to say so. */
.home-piece-title a { color: var(--brand-primary); text-decoration: none; }
.home-piece-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.home-piece-meta { margin: 0; font-size: 0.8125rem; line-height: 1.5; color: var(--text-light); }
.home-piece-figure img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.home-piece-summary { margin: 0; font-size: 0.9375rem; line-height: 1.6; color: var(--text-muted); }
.home-piece-list .home-piece-summary { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font-size: 0.875rem; }
.home-piece-list { padding: 4px 24px; }
.home-piece-list .home-piece { display: flex; flex-direction: column; gap: 6px; padding: 20px 0; border-bottom: 1px solid var(--border-light); }
.home-piece-list .home-piece:last-child { border-bottom: 0; }
/* Althea's questions about the leading paper: chips of her kind, her symbol in each. */
.home-piece-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.home-piece-ask-symbol { display: block; width: 16px; height: 16px; background: var(--tt-color-accent); -webkit-mask: url('/assets/althea-symbol.svg') center / contain no-repeat; mask: url('/assets/althea-symbol.svg') center / contain no-repeat; }
.home-piece-starter { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px 0 8px; border: 1px solid color-mix(in srgb, var(--tt-color-accent) 45%, var(--bg-surface)); border-radius: 999px; background: var(--bg-surface); color: var(--text-main); font: inherit; font-size: 0.8125rem; line-height: 1; cursor: pointer; transition: border-color 150ms ease, transform 150ms ease; }
@media (hover: hover) and (pointer: fine) { .home-piece-starter:hover { border-color: var(--tt-color-accent); } }
.home-piece-starter:active { transform: scale(.97); border-color: var(--tt-color-accent); }
.home-piece-read, .home-panel-all { align-self: flex-start; font-size: 0.875rem; font-weight: 600; color: var(--brand-primary); text-decoration: none; }
.home-piece-read:hover, .home-panel-all:hover { text-decoration: underline; text-underline-offset: 3px; }
/* The narrow column. The papers' list is the Latest papers block; the other tabs' lists
   are plain blocks of the same make. */
.home-side .home-new { margin: 0; display: flex; flex-direction: column; box-sizing: border-box; }
.home-side .home-new .home-new-foot { margin-top: auto; }
.home-side-block { padding: 18px 20px; }
.home-side-list { list-style: none; margin: 8px 0 0; padding: 0; }
.home-side-list li { padding: 9px 0; border-bottom: 1px solid var(--border-light); font-size: 0.95em; line-height: 1.35; }
.home-side-list li:last-child { border-bottom: 0; }
.home-side-list a { color: var(--brand-primary); font-weight: 600; text-decoration: none; }
.home-side-list a:hover { text-decoration: underline; }
.home-side-note { margin: 8px 0 0; font-size: 0.9375rem; line-height: 1.5; color: var(--text-muted); }
.home-side-note a { color: var(--brand-primary); font-weight: 600; }
.home-pieces > .editorial-section, .home-pieces > .card { margin: 0; }
.home-side { display: flex; flex-direction: column; gap: 24px; }
.home-side-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.home-side-count { flex: none; font-size: 0.8125rem; color: var(--text-light); font-variant-numeric: tabular-nums; }
.home-piece-in { margin: 0; font-size: 0.8125rem; line-height: 1.5; color: var(--text-light); }
.home-piece-in a { color: var(--brand-primary); text-decoration: none; }
.home-piece-in a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* A deck: cards of one kind, some shown and more behind them. */
.home-deck { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.home-deck-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; }
.home-deck-head .kicker { display: block; margin: 0; padding: 0; border: 0; font-family: inherit; font-size: 0.72em; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); font-weight: 700; }
.home-deck-about { margin: -4px 0 4px; font-size: 0.875rem; line-height: 1.5; color: var(--text-muted); }
.home-deck-more { align-self: flex-start; height: 32px; padding: 0 16px; border: 1px solid var(--border-light); border-radius: 999px; background: var(--bg-surface); color: var(--text-main); font: inherit; font-size: 0.8125rem; line-height: 1; cursor: pointer; transition: border-color 150ms ease, transform 150ms ease; }
@media (hover: hover) and (pointer: fine) { .home-deck-more:hover { border-color: var(--text-light); } }
.home-deck-more:active { transform: scale(.97); border-color: var(--text-main); }
.home-deck-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.home-deck-grid > [hidden] { display: none; }
.home-deck-grid > .card { margin: 0; }
/* The narrow column has one design, Latest papers' own (.home-new): a box, its heading with
   Althea's chip beside it, rows of a title and lines of facts, the way to the whole list at
   its foot. Its boxes stand 24px apart. */
/* The nudge that leads a narrow column: the reader's own, in a box of the same make, with
   the one filled button of the page's body. */
.home-nudge-words { margin: 8px 0 14px; font-size: 0.9375rem; line-height: 1.5; color: var(--text-muted); }
.home-nudge-button { align-self: flex-start; display: inline-flex; align-items: center; min-height: 36px; margin-bottom: 8px; padding: 6px 16px; border: 0; border-radius: 18px; line-height: 1.3; text-align: left; background: var(--tt-teal-600); color: #fff; font: inherit; font-size: 0.875rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color 150ms ease, transform 150ms ease; }
.home-nudge-button:hover { background: var(--tt-teal-700); color: #fff; text-decoration: none; }
.home-nudge-althea { gap: 8px; padding-left: 12px; }
.home-nudge-symbol { display: block; width: 18px; height: 18px; flex: 0 0 18px; background: currentColor; -webkit-mask: url('/assets/althea-symbol.svg') center / contain no-repeat; mask: url('/assets/althea-symbol.svg') center / contain no-repeat; }
.home-nudge-button:active { transform: scale(.97); }
/* A spotlight's leading papers, under the author's name. */
.home-piece-papers { list-style: none; margin: 0; padding: 0; }
.home-piece-papers li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--border-light); font-size: 0.9375rem; line-height: 1.4; }
.home-piece-papers a { color: var(--text-main); text-decoration: none; }
.home-piece-papers a:hover { color: var(--brand-primary); text-decoration: underline; text-underline-offset: 3px; }
.home-piece-papers span { flex: none; font-size: 0.8125rem; color: var(--text-light); font-variant-numeric: tabular-nums; }
.home-side .home-new-meta a { color: inherit; text-decoration: none; }
.home-side .home-new-meta a:hover { text-decoration: underline; }
/* The narrow column's blocks with their heading over them, level with a deck's. */
.home-side-group { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.home-side-group .home-side-list { margin-top: 0; }
.home-side-group .home-side-note { margin: 0 0 8px; font-size: 0.8125rem; }

.home-side-group .rising-list { margin: 0; }
/* A tab with one column: its cards three across. */
.home-grid:has(> .home-pieces-wide) { grid-template-columns: minmax(0, 1fr); }
.home-pieces-wide .home-deck-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .home-pieces-wide .home-deck-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .home-pieces-wide .home-deck-grid { grid-template-columns: minmax(0, 1fr); } }
/* The author in the spotlight: the name is the card's heading. */
.home-pieces .editorial-section h3 { font-family: 'Literata', 'Georgia', serif; font-size: 1.5rem; font-weight: 600; line-height: 1.25; }
.home-pieces .editorial-section h3 a { color: var(--text-main) !important; }
.home-pieces .editorial-section h3 a:hover { color: var(--brand-primary) !important; text-decoration: underline; text-underline-offset: 3px; }
.home-panel-foot { display: flex; justify-content: flex-end; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border-light); }
.home-next { font-size: 0.9375rem; font-weight: 600; color: var(--brand-primary); text-decoration: none; }
.home-next:hover { text-decoration: underline; text-underline-offset: 3px; }
/* One column under 912px of panels (a window of 960 with no pane): narrower than that the
   side column cannot hold its button's words on one line. */
@container home-panels (max-width: 912px) {
  .home-grid { grid-template-columns: minmax(0, 1fr); }
  /* Latest papers was cut to the picks' length for two columns; in one it keeps its own. */
  #home-new { min-height: 0 !important; }
  .home-pieces { display: contents; }
  .home-piece-lead { order: 1; }
  .home-side { order: 2; }
  .home-piece-list { order: 3; }
  .home-panel-all { order: 4; }
  .home-pieces > .editorial-section, .home-pieces > .card { order: 1; }
  .home-deck { order: 1; }
  /* On a phone the day's pick comes first, then Latest papers, then the days before. */
  .home-picks, .home-picks .home-deck-grid { display: contents; }
  .home-picks .home-piece-lead { order: 3; }
  .home-picks .home-piece-lead:first-child { order: 1; }
  .home-picks .home-deck-more { order: 3; }
  .home-piece-lead > .home-piece-figure, .home-cover { height: 180px; margin: -18px -16px 8px; }
  .home-piece-lead > .home-piece-figure { padding: 12px 16px; }
  .home-piece-who { gap: 14px; }
  .home-portrait { width: 56px; height: 56px; }
  .home-portrait-initials { font-size: 1.25rem; }
  .home-piece-lead { padding: 18px 16px; }
  .home-piece-list { padding: 2px 16px; }
  .home-piece-lead .home-piece-title { font-size: 1.25rem; }
}
.home-stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 720px; margin: 0 auto; }
.home-stat-compact { display: none; }
.home-stat-card { display: flex; min-width: 0; flex-direction: column; align-items: center; gap: 6px; padding: 14px 14px 12px; background: var(--bg-body); border: 1px solid var(--border-medium); border-radius: 8px; text-decoration: none; color: inherit; min-height: 96px; text-align: center; transition: border-color 150ms ease, transform 120ms cubic-bezier(0.23,1,0.32,1); }
.home-stat-card:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) { .home-stat-card:hover { border-color: var(--brand-accent); transform: translateY(-1px); text-decoration: none; } }
.home-stat-icon { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.home-stat-icon img { width: 32px; height: 32px; margin-right: 0 !important; }
.home-stat-value { font-family: 'Inter', sans-serif; font-size: 1.15em; line-height: 1.1; color: var(--text-main); font-weight: 700; }
.home-stat-label { font-size: 0.92em; color: var(--text-muted); font-weight: 600; line-height: 1.2; text-align: center; }
.home-follow { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 9px; min-height: 28px; margin: 16px 0 0; color: var(--text-muted); font-size: 14px; line-height: 1.4; }
.home-follow-separator { color: var(--text-light); }
.home-follow a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 28px; color: var(--brand-primary); font-weight: 550; text-decoration: none; white-space: nowrap; }
.home-follow a:hover { text-decoration: underline; text-underline-offset: 3px; }
.home-follow a:focus-visible { outline: var(--tt-focus-ring-width) solid var(--tt-color-focus-ring); outline-offset: var(--tt-focus-ring-offset); border-radius: 3px; }
.home-follow svg { width: 14px; height: 14px; flex: 0 0 14px; }
@media (max-width: 768px) {
  .home-hero { margin: 24px auto 24px; padding: 28px 0 24px; }
  .home-hero-brand { gap: 8px; }
  .home-hero-wordmark { width: clamp(180px, 34vw, 230px); }
}
@media (max-width: 640px) {
  .home-hero { margin-bottom: 12px; }
  .home-follow { margin-top: 12px; }
}
@media (max-width: 480px) {
  .home-hero { margin: 18px auto 12px; padding: 22px 0 18px; }
  .home-hero-logo { width: min(96px, 26vw); }
  .home-hero-wordmark { width: min(190px, 52vw); }
  .home-hero-logo { width: 64px; }
  .home-hero-wordmark { width: 150px; }
  /* On a phone the line keeps to four rows: at 16px it takes five and pushes the search down. */
  .home-hero-note { margin-bottom: 20px; font-size: 0.875rem; line-height: 24px; }
  .home-hero-search { margin-bottom: 20px; }
  .home-built { margin-top: -4px; }
  .home-hero-note-althea { height: 24px; padding: 0 9px 0 7px; line-height: 22px; }
  .home-hero-note-althea-symbol { width: 16px; height: 16px; margin-right: 5px; }
  .home-hero-note-althea-word { width: 45px; height: 12px; }
  .home-search-hint { left: 18px; right: 58px; }
  /* One bordered strip of four compact counts instead of stacked cards. */
  .home-stat-row { gap: 0; border: 1px solid var(--border-medium); border-radius: 10px; overflow: hidden; background: var(--bg-body); }
  .home-stat-card { min-height: 0; gap: 2px; padding: 10px 4px; border: 0; border-radius: 0; }
  .home-stat-card + .home-stat-card { border-left: 1px solid var(--border-medium); }
  .home-stat-icon, .home-stat-full { display: none; }
  .home-stat-compact { display: inline; }
  .home-stat-value { font-size: 1.05em; }
  .home-stat-label { font-size: 0.74em; white-space: nowrap; }
}
.home-about { max-width: 720px; margin: 40px auto 24px; padding: 0 4px; color: var(--text-light); font-size: 0.88em; line-height: 1.6; text-align: center; }
.home-about p { margin: 0 0 16px; }
.home-about p:last-child { margin-bottom: 0; }
.home-about strong { color: var(--text-muted); font-weight: 600; }
.home-about a { color: var(--text-muted); }
.home-about a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) { .home-about { margin: 28px auto 18px; font-size: 0.86em; } }
.editorial { margin-bottom: 32px; }

.home-new { margin: -22px 0 28px; padding: 18px 20px 12px; background: var(--bg-surface); border: 1px solid var(--border-medium); border-radius: var(--radius-md); }
.home-new-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 4px; }
.home-new-near { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px 0 8px; border: 1px solid color-mix(in srgb, var(--tt-color-accent) 45%, var(--bg-surface)); border-radius: 999px; background: var(--bg-surface); color: var(--text-main); font: inherit; font-size: 0.8125rem; line-height: 1; cursor: pointer; transition: border-color 150ms ease, transform 150ms ease; }
.home-new-near-symbol { display: block; width: 16px; height: 16px; background: var(--tt-color-accent); -webkit-mask: url('/assets/althea-symbol.svg') center / contain no-repeat; mask: url('/assets/althea-symbol.svg') center / contain no-repeat; }
@media (hover: hover) and (pointer: fine) { .home-new-near:hover { border-color: var(--tt-color-accent); } }
.home-new-near:active { transform: scale(.97); border-color: var(--tt-color-accent); }
.home-new-head .kicker { display: block; margin: 0; padding: 0; border: 0; font-family: inherit; font-size: 0.72em; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); font-weight: 700; }
.home-new-list { list-style: none; margin: 0; padding: 0; }
.home-new-item { display: grid; gap: 4px; padding: 11px 0; border-bottom: 1px solid var(--border-light); }
.home-new-item:last-child { border-bottom: none; }
.home-new-title { min-width: 0; font-size: 0.95em; font-weight: 600; line-height: 1.35; color: var(--brand-primary); text-decoration: none; }
.home-new-title:hover { text-decoration: underline; }
.home-new-meta { display: flex; align-items: baseline; gap: 12px; min-width: 0; font-size: 0.8em; line-height: 1.5; color: var(--text-muted); }
.home-new-authors { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-new-day { flex: none; color: var(--text-light); font-variant-numeric: tabular-nums; }
.home-new-places { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.8em; line-height: 1.5; color: var(--text-light); }
.home-new-meta a { color: inherit; text-decoration: none; }
.home-new-meta a:hover { text-decoration: underline; }
.home-new-extra { color: var(--text-light); }
.home-new-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding-top: 10px; }
.home-new-more { height: 32px; padding: 0 16px; border: 1px solid var(--border-medium); border-radius: 999px; background: transparent; color: var(--text-main); font: inherit; font-size: 0.85em; cursor: pointer; }
.home-new-more:hover { background: var(--bg-subtle); }
.home-new-more:disabled { color: var(--text-muted); cursor: progress; }
.home-new-all { margin-left: auto; font-size: 0.85em; font-weight: 600; color: var(--brand-primary); text-decoration: none; }
.home-new-all:hover { text-decoration: underline; }
@media (max-width: 640px) { .home-new { padding: 14px 14px 10px; } }

.editorial-featured { background: var(--bg-surface); border: 1px solid var(--border-medium); border-radius: var(--radius-md); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.editorial-featured .kicker { font-size: 0.72em; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); font-weight: 700; }
.editorial-featured h2 { font-family: 'Literata', 'Georgia', serif; font-size: 1.25em; margin: 0; font-weight: 700; line-height: 1.35; }
.editorial-featured h2 a { color: var(--brand-primary); text-decoration: none; }
.editorial-featured h2 a:hover { color: var(--brand-hover); text-decoration: underline; }
.editorial-featured .excerpt { font-size: 0.9em; color: var(--text-muted); line-height: 1.6; }
.editorial-featured .read-more { font-size: 0.85em; font-weight: 600; color: var(--brand-primary); text-decoration: none; margin-top: auto; }
.editorial-featured .read-more:hover { text-decoration: underline; }
.editorial-figure { background: var(--bg-surface); border: 1px solid var(--border-medium); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; }
.editorial-figure .fig-header { padding: 20px 20px 0; display: flex; flex-direction: column; gap: 6px; }
.editorial-figure img { width: auto; max-width: 100%; max-height: 400px; height: auto; object-fit: contain; display: block; align-self: center; margin: 0 auto; background: #fff; padding: 12px; }
.editorial-figure .fig-body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.editorial-figure .kicker { font-size: 0.72em; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); font-weight: 700; }
.editorial-figure .fig-title { font-family: 'Literata', 'Georgia', serif; font-size: 1.1em; margin: 0; font-weight: 700; line-height: 1.35; }
.editorial-figure .fig-title a { color: var(--brand-primary); text-decoration: none; }
.editorial-figure .fig-title a:hover { text-decoration: underline; }
.editorial-figure .fig-caption { font-size: 0.78em; color: var(--text-light); line-height: 1.6; }
.editorial-figure .fig-source { font-size: 0.82em; margin-top: auto; }
.editorial-figure .fig-recently { font-size: 0.78em; color: var(--text-light); padding: 10px 20px; border-top: 1px solid var(--border-light); }
.editorial-figure .fig-recently a { color: var(--brand-accent); text-decoration: none; }
.editorial-figure .fig-recently a:hover { text-decoration: underline; }
.editorial-figure .fig-source a { color: var(--brand-primary); text-decoration: none; }
.editorial-figure .fig-source a:hover { text-decoration: underline; }

.editorial-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 28px; align-items: start; }
@media (max-width: 768px) { .editorial-row { grid-template-columns: 1fr; } }
.editorial-section { background: var(--bg-surface); border: 1px solid var(--border-medium); border-radius: var(--radius-md); padding: 20px; }
.editorial-section .kicker { font-size: 0.72em; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); font-weight: 700; margin-bottom: 12px; }
.editorial-section h2.kicker { font-family: inherit; display: inline; margin: 0 0 12px; padding: 0; border: 0; unicode-bidi: normal; }
.rising-list { list-style: none; padding: 0; margin: 0; }
.rising-list li { padding: 8px 0; border-bottom: 1px solid var(--border-light); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.rising-list li:last-child { border-bottom: none; }
.rising-list .dir-title { font-size: 0.88em; color: var(--brand-primary); text-decoration: none; flex: 1; min-width: 0; }
.rising-list .dir-title:hover { text-decoration: underline; }
.rising-list .dir-growth { font-size: 0.78em; font-weight: 600; color: #16a34a; white-space: nowrap; }
.rising-list li.twitter-direction { display: block; }
.rising-list li.twitter-direction .dir-title { display: block; margin-bottom: 2px; }
.rising-list .dir-desc { font-size: 0.8em; color: var(--text-muted); display: block; line-height: 1.45; }
.rising-list .dir-meta { font-size: 0.76em; color: var(--text-light); display: block; margin-top: 4px; }
.history-list { list-style: none; padding: 0; margin: 0; }
.history-list li { padding: 10px 0; border-bottom: 1px solid var(--border-light); display: flex; gap: 14px; align-items: flex-start; }
.history-list li:last-child { border-bottom: none; }
.history-year { font-size: 0.82em; font-weight: 700; color: var(--text-muted); white-space: nowrap; min-width: 36px; padding-top: 1px; }
.history-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.history-title { font-size: 0.92em; line-height: 1.35; }
.history-title a { color: var(--brand-primary); text-decoration: none; }
.history-title a:hover { text-decoration: underline; }
.history-people { font-size: 0.84em; color: var(--text-main); line-height: 1.45; }
.history-desc { font-size: 0.84em; color: var(--text-muted); line-height: 1.5; }
.history-meta { font-size: 0.82em; color: var(--text-muted); line-height: 1.45; }
.frontier-list { list-style: none; padding: 0; margin: 0; }
.frontier-list li { padding: 10px 0; border-bottom: 1px solid var(--border-light); }
.frontier-list li:last-child { border-bottom: none; }
.frontier-list .fact-text { font-size: 0.88em; color: var(--text-main); line-height: 1.5; }
.frontier-list .fact-link { font-size: 0.8em; color: var(--brand-primary); text-decoration: none; margin-top: 4px; display: inline-block; }
.frontier-list .fact-link:hover { text-decoration: underline; }

.explore-divider { border: none; border-top: 1px solid var(--border-medium); margin: 8px 0 24px; }

.browse-corpus { margin-top: 8px; }
.browse-corpus h2 { font-family: 'Literata', 'Georgia', serif; font-size: 1.3em; margin: 0 0 16px; border: none; padding: 0; }
.browse-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 768px) { .browse-grid { grid-template-columns: repeat(2, 1fr); } }
.browse-item { background: var(--bg-surface); border: 1px solid var(--border-medium); border-radius: var(--radius-md); padding: 20px; text-align: center; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 4px; transition: border-color 0.15s; }
.browse-item:hover { border-color: var(--brand-accent); text-decoration: none; }
.browse-count { font-family: 'Literata', 'Georgia', serif; font-size: 1.6em; font-weight: 700; color: var(--text-main); }
.browse-label { font-size: 0.88em; color: var(--text-muted); }

.pagination-row { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 18px; font-size: 0.9em; color: var(--text-muted); }
.share-group { display: inline-flex; gap: 4px; margin-left: auto; }
.row-menu-wrap { position: relative; display: inline-flex; }
.row-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; min-width: 13rem; padding: 6px; border: 1px solid var(--border-medium); border-radius: 12px; background: var(--bg-surface); box-shadow: 0 10px 30px rgba(0,0,0,0.12); display: grid; gap: 2px; }
.row-menu[hidden] { display: none; }
.row-menu-item, .external-links .row-menu a.row-menu-item { display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; padding: 8px 10px; border: 0; border-radius: 8px; background: none; box-shadow: none; color: var(--text-main); font: inherit; font-size: 0.92em; font-weight: 400; text-align: left; text-decoration: none; cursor: pointer; white-space: nowrap; }
.row-menu-item:hover, .external-links .row-menu a.row-menu-item:hover { background: var(--bg-subtle); color: var(--brand-primary); text-decoration: none; }
.external-links .row-menu a.row-menu-item:active { transform: none; }
.row-menu-item:focus-visible { outline: var(--tt-focus-ring-width, 2px) solid var(--tt-color-focus-ring, var(--brand-primary)); outline-offset: -2px; }
.row-menu-item > svg { width: 16px; height: 16px; flex: 0 0 16px; }
/* Versions: one button beside Add to list, a menu of the Work's versions under it. */
.version-menu-btn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 12px; border: 1px solid var(--border-medium); border-radius: var(--radius-md); background: var(--bg-surface); color: var(--text-muted); font: inherit; font-size: 0.82em; font-weight: 500; cursor: pointer; transition: all 0.15s; white-space: nowrap; }
.version-menu-btn:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.version-menu-btn[aria-expanded="true"] { border-color: var(--brand-primary); background: var(--tt-color-surface-open, var(--bg-tag)); color: var(--brand-primary); }
.version-menu-btn svg { flex: 0 0 auto; }
.version-menu-current { min-width: 0; max-width: 24rem; overflow: hidden; text-overflow: ellipsis; color: var(--text-main); }
.version-menu-btn:hover .version-menu-current, .version-menu-btn[aria-expanded="true"] .version-menu-current { color: inherit; }
.version-menu-count { min-width: 18px; padding: 0 6px; border-radius: 999px; background: var(--bg-stat); color: var(--text-muted); font-size: 0.9em; line-height: 18px; text-align: center; }
.version-menu-btn svg:last-child { transition: transform 0.15s; }
.version-menu-btn[aria-expanded="true"] svg:last-child { transform: rotate(180deg); }
.version-menu-btn:focus-visible { outline: var(--tt-focus-ring-width, 2px) solid var(--tt-color-focus-ring, var(--brand-primary)); outline-offset: var(--tt-focus-ring-offset, 2px); }
.row-menu.version-menu { left: 0; right: auto; width: max-content; min-width: 17rem; max-width: min(26rem, calc(100vw - 32px)); }
.version-menu a.version-menu-item { align-items: flex-start; white-space: normal; }
.version-menu a.version-menu-item[aria-current="page"] { background: var(--tt-color-surface-open, var(--bg-subtle)); }
.version-menu-mark { flex: 0 0 16px; height: 16px; margin-top: 1px; color: var(--brand-primary); }
.version-menu-mark svg { display: block; width: 16px; height: 16px; }
.version-menu-text { display: grid; gap: 2px; flex: 1 1 auto; min-width: 0; }
.version-menu-label { font-weight: 500; }
.version-menu-detail { color: var(--text-muted); font-size: 0.9em; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.version-menu-tag { flex: 0 0 auto; padding: 1px 8px; border-radius: 999px; background: var(--bg-tag); color: var(--brand-primary); font-size: 0.82em; font-weight: 600; line-height: 1.5; }
@media (max-width: 640px) {
  /* Keep Read / Bookmark / share on one row: Bookmark drops its label. */
  .page-narrow > .external-links { flex-wrap: wrap; row-gap: 8px; position: relative; }
  /* The versions menu spans the venue line rather than running off the screen. */
  .paper-venue-line { position: relative; }
  .paper-venue-line .version-menu-wrap { position: static; }
  .paper-venue-line .row-menu.version-menu { left: 0; right: 0; width: auto; min-width: 0; max-width: none; }
  .page-narrow > .external-links .bookmark-label { display: none; }
  .page-narrow > .external-links .share-group { flex-wrap: nowrap; }
}
.share-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--brand-primary); color: var(--brand-contrast); padding: 8px 18px; border-radius: 20px; font-size: 0.88em; font-weight: 500; opacity: 0; transition: opacity 0.25s; pointer-events: none; z-index: 999; }
.share-toast.show { opacity: 1; }
.report-mistake { margin: 40px 0 8px; color: var(--text-muted); font-size: 0.85em; text-align: center; }
.report-mistake a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.report-mistake a:hover { color: var(--link-color); }
.flash { padding: 12px 16px; border-radius: 6px; margin: 12px 0; font-size: 0.92em; }
.flash-ok { background: #d1fae5; color: #065f46; }
.flash-err { background: #fee2e2; color: #991b1b; }
.claim-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 12px 0 4px; }
.claim-btn { display: inline-flex; align-items: center; gap: 4px; padding: 6px 16px; border-radius: 6px; font-size: 0.85em; font-weight: 600; white-space: nowrap; text-decoration: none; cursor: pointer; border: none; }
.claim-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.claim-btn-primary { background: var(--brand-primary); color: var(--brand-contrast); }
.claim-btn-primary:hover:not(:disabled) { background: var(--brand-hover); color: var(--brand-contrast); text-decoration: none; }
.claim-btn-secondary { background: var(--bg-surface); color: var(--text-muted); border: 1px solid var(--border-medium); }
.claim-btn-secondary:hover:not(:disabled) { border-color: var(--brand-accent); color: var(--text-main); text-decoration: none; }
@media (max-width: 640px) {
  .explore-hero { padding: 18px; }
  .explore-section-head { flex-direction: column; align-items: flex-start; }
  .explore-section-head.is-search h2 { font-size: 1.15em; line-height: 1.35; }
  .explore-switcher { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -24px; padding-right: 24px; }
  .explore-switcher::-webkit-scrollbar { display: none; }
  .explore-switch { flex: 0 0 auto; }
  .explore-switch img, .explore-switch svg { display: none; }
  .explore-results-groups { gap: 24px; }
  .explore-result-group-head { align-items: baseline; }
  .pagination-row { gap: 10px; font-size: 0.85em; }
}
.direction-tab-header{display:flex;align-items:stretch;border-bottom:2px solid var(--border-medium);position:relative}
.direction-tab-header .tab-bar{flex:1;min-width:0;border-bottom:0}
.direction-tab-tools{display:flex;align-items:center;gap:8px;padding-left:10px;flex:0 0 auto}
.direction-tab-about{position:relative}
.direction-tab-about summary,.direction-tab-download{display:inline-flex;align-items:center;min-height:32px;padding:0 8px;color:var(--text-muted);font-size:.76em;font-weight:600;white-space:nowrap;cursor:pointer}
.direction-tab-about summary{list-style:none}
.direction-tab-about summary::-webkit-details-marker{display:none}
.direction-tab-about summary:hover,.direction-tab-download:hover{color:var(--brand-primary)}
.direction-tab-download{color:var(--link-color);text-decoration:none}
.direction-tab-download:hover{text-decoration:underline}
.direction-tab-download-short{display:none}
.direction-tab-download[hidden],.direction-tab-about-card [hidden]{display:none}
.direction-tab-about-card{position:absolute;z-index:30;right:0;bottom:calc(100% + 8px);width:min(290px,calc(100vw - 48px));padding:10px 12px;border:1px solid var(--border-medium);border-radius:var(--radius-md);background:var(--bg-surface);box-shadow:0 8px 24px rgba(0,0,0,.15)}
.direction-tab-about-card p{margin:0;color:var(--text-secondary);font-size:.82em;line-height:1.45}
.direction-tab-about summary:focus-visible,.direction-tab-download:focus-visible{outline:2px solid var(--brand-accent);outline-offset:2px}
@media(max-width:640px){.direction-tab-tools{gap:2px;padding-left:4px}.direction-tab-about summary,.direction-tab-download{padding:0 5px;font-size:.72em}.direction-tab-download-label{display:none}.direction-tab-download-short{display:inline}}
.metric-help{display:inline-flex;align-items:center;gap:4px;position:relative;cursor:help;white-space:nowrap}
.metric-help-icon{display:inline-grid;place-items:center;width:15px;height:15px;border:1px solid currentColor;border-radius:50%;color:var(--text-light);font-size:10px;font-weight:700;line-height:1}
.metric-help-tip{display:none;position:absolute;z-index:20;right:0;bottom:calc(100% + 8px);width:min(260px,calc(100vw - 48px));padding:9px 11px;border-radius:6px;background:var(--text-main);color:var(--bg-surface);font-size:.76rem;font-weight:400;line-height:1.4;white-space:normal;box-shadow:0 6px 18px rgba(0,0,0,.16)}
.metric-help:hover .metric-help-tip,.metric-help:focus-visible .metric-help-tip{display:block}
.metric-help:focus-visible{outline:2px solid var(--brand-accent);outline-offset:2px}

.tab-panel{margin:24px 0 0}
.tab-bar{display:flex;gap:0;border-bottom:2px solid var(--border-medium);margin-bottom:0}
.tab-btn{font-family:'Inter',sans-serif;font-size:.88em;font-weight:500;padding:10px 18px;border:none;background:none;color:var(--text-muted);cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-2px;transition:color .15s,border-color .15s}
.tab-btn:hover{color:var(--brand-primary)}
.tab-btn.active{color:var(--brand-primary);border-bottom-color:var(--brand-primary);font-weight:600}

.page:has(> .institution-directory-page) > .breadcrumb{max-width:1040px}
.institution-directory-page{max-width:1040px;margin:0 auto}
.institution-directory-header{margin-bottom:24px}
.institution-directory-header h1{font-size:clamp(1.65em,3vw,2.15em);line-height:1.25;margin-bottom:10px}
.institution-directory-stats{margin-bottom:10px}
.institution-directory-definition{max-width:780px;color:var(--text-muted);font-size:.86em;line-height:1.55}
.institution-directory-tabs{margin-top:24px}
.institution-directory-tabs .tab-btn{display:inline-flex;align-items:center;text-decoration:none;transition:color 150ms ease,border-color 150ms ease,transform 120ms ease}
.institution-directory-tabs .tab-btn:active{transform:scale(.98)}
.institution-directory-browser{padding-top:20px}
.institution-scope-row{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.institution-control-label{font-size:.78em;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--text-light)}
.institution-scope-switch{display:inline-flex;align-items:center;padding:3px;background:var(--bg-subtle);border:1px solid var(--border-medium);border-radius:9px}
.institution-scope-option{display:inline-flex;align-items:center;gap:6px;padding:6px 11px;border-radius:6px;color:var(--text-muted);font-size:.82em;font-weight:600;text-decoration:none;transition:color 150ms ease,background 150ms ease,transform 120ms ease}
.institution-scope-option span{color:var(--text-light);font-variant-numeric:tabular-nums}
.institution-scope-option:hover{color:var(--text-main);text-decoration:none}
.institution-scope-option.active{background:var(--bg-surface);color:var(--text-main);box-shadow:0 1px 2px rgba(0,0,0,.08)}
.institution-scope-option.active span{color:var(--brand-primary)}
.institution-scope-option:active{transform:scale(.98)}
.institution-directory-controls{display:grid;grid-template-columns:minmax(260px,1fr) minmax(145px,auto) minmax(145px,auto) auto auto;gap:8px;align-items:center;padding:12px;background:var(--bg-subtle);border:1px solid var(--border-medium);border-radius:var(--radius-md)}
.institution-search-control input,.institution-select-control select{width:100%;height:38px;padding:0 11px;border:1px solid var(--border-medium);border-radius:6px;background:var(--bg-surface);color:var(--text-main);font:inherit;font-size:.86em}
.institution-select-control{position:relative;display:block;color:var(--text-muted)}
.institution-select-control::after{content:"";position:absolute;top:50%;right:15px;width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;pointer-events:none;transform:translateY(-70%) rotate(45deg)}
.institution-select-control select{appearance:none;-webkit-appearance:none;padding-right:38px}
.institution-search-control input:focus,.institution-select-control select:focus{outline:none;border-color:var(--brand-accent);box-shadow:0 0 0 3px color-mix(in srgb, var(--tt-teal-400) 18%, transparent)}
.institution-filter-submit{height:38px;padding:0 15px;border:0;border-radius:6px;background:var(--brand-primary);color:var(--brand-contrast);font:inherit;font-size:.84em;font-weight:700;cursor:pointer;transition:background 150ms ease,transform 120ms ease}
.institution-filter-submit:hover{background:var(--brand-hover)}
.institution-filter-submit:active{transform:scale(.97)}
.institution-filter-clear{font-size:.8em;color:var(--text-muted);padding:7px 4px;text-align:center}
.institution-directory-page.is-loading .institution-people-list,.institution-directory-page.is-loading .institution-paper-list,.institution-directory-page.is-loading .institution-empty-state,.institution-directory-page.is-loading .pagination-row{opacity:.55;pointer-events:none}
.institution-directory-page.is-loading .institution-filter-submit{cursor:progress}
.institution-results-heading{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-top:24px;border-bottom:1px solid var(--border-medium)}
.institution-results-heading h2{margin:0;border:0;padding-bottom:7px}
.institution-results-heading > span{font-size:.8em;color:var(--text-light);font-variant-numeric:tabular-nums}
.institution-paper-scope-note{margin:10px 0 2px;color:var(--text-muted);font-size:.82em;line-height:1.5}
.institution-people-list,.institution-paper-list{margin-top:8px;border:1px solid var(--border-medium);border-radius:var(--radius-md);overflow:hidden;background:var(--bg-surface)}
.institution-person-columns,.institution-person-row{display:grid;grid-template-columns:minmax(190px,1.4fr) minmax(150px,1fr) minmax(210px,1.25fr) 72px;gap:16px;align-items:center}
.institution-person-columns{padding:8px 14px;background:var(--bg-subtle);color:var(--text-light);font-size:.72em;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.institution-person-columns span:last-child{text-align:right}
.institution-person-row{min-height:76px;padding:12px 14px;color:var(--text-main);text-decoration:none;border-top:1px solid var(--border-light);transition:background 140ms ease}
.institution-person-row:hover{background:var(--bg-subtle);text-decoration:none;color:var(--text-main)}
.institution-person-row:focus-visible{outline:2px solid var(--brand-accent);outline-offset:-2px}
.institution-person-identity{display:flex;align-items:center;gap:10px;min-width:0}
.institution-person-avatar{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;overflow:hidden;border:1px solid var(--border-medium);border-radius:50%;background:var(--bg-stat)}
.institution-person-avatar img{display:block;width:100%;height:100%;object-fit:cover}
.institution-person-avatar-fallback{color:var(--text-muted);font-size:.72em;font-weight:750;letter-spacing:.02em}
.institution-person-name,.institution-person-role,.institution-person-papers{display:flex;flex-direction:column;min-width:0}
.institution-person-name strong{color:var(--brand-primary);font-size:.92em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.institution-person-name small,.institution-person-role small{color:var(--text-light);font-size:.74em;line-height:1.35;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.institution-role-chip{display:inline-flex;width:max-content;max-width:100%;padding:2px 7px;border-radius:999px;background:var(--bg-stat);color:var(--text-muted);font-size:.72em;font-weight:700;line-height:1.4}
.institution-role-faculty{background:var(--bg-tag-author);color:var(--brand-primary)}
.institution-role-student{background:var(--bg-tag-cluster)}
.institution-role-postdoc{background:var(--bg-tag-kind)}
.institution-person-affiliations{color:var(--text-muted);font-size:.78em;line-height:1.45;min-width:0}
.institution-person-papers{text-align:right;font-variant-numeric:tabular-nums}
.institution-person-papers strong{font-size:.92em}
.institution-person-papers small{font-size:.7em;color:var(--text-light)}
.institution-paper-row{padding:14px 16px;border-top:1px solid var(--border-light)}
.institution-paper-row:first-child{border-top:0}
.institution-paper-row h3{font-family:'Inter',sans-serif;font-size:.92em;font-weight:650;line-height:1.4;margin:0}
.institution-paper-row h3 a{color:var(--brand-primary)}
.institution-paper-meta,.institution-paper-authors{margin:4px 0 0;font-size:.76em;color:var(--text-light);line-height:1.45}
.institution-paper-authors span{font-weight:650;color:var(--text-muted)}
.institution-empty-state{margin-top:8px;padding:34px 18px;border:1px dashed var(--border-medium);border-radius:var(--radius-md);color:var(--text-muted);font-size:.88em;text-align:center}
[data-theme="dark"] .institution-search-control input,[data-theme="dark"] .institution-select-control select{background:var(--bg-surface);color:var(--text-main)}
@media(max-width:820px){
  .institution-directory-controls{grid-template-columns:minmax(220px,1fr) minmax(135px,auto) minmax(135px,auto)}
  .institution-filter-submit{grid-column:auto}
  .institution-filter-clear{text-align:left}
  .institution-person-columns,.institution-person-row{grid-template-columns:minmax(175px,1.25fr) minmax(135px,1fr) minmax(170px,1.1fr) 58px;gap:10px}
}
@media(max-width:640px){
  .institution-directory-header{margin-bottom:18px}
  .institution-directory-tabs{margin-top:18px}
  .institution-directory-browser{padding-top:16px}
  .institution-scope-row{align-items:flex-start;flex-direction:column;gap:6px}
  .institution-scope-switch{width:100%}
  .institution-scope-option{flex:1;justify-content:center}
  .institution-directory-controls{display:flex;flex-direction:column;align-items:stretch;padding:10px}
  .institution-search-control input,.institution-select-control select,.institution-filter-submit{font-size:16px;width:100%}
  .institution-filter-clear{text-align:center}
  .institution-person-columns{display:none}
  .institution-person-row{grid-template-columns:1fr auto;gap:9px 12px;min-height:0;padding:13px}
  .institution-person-identity{grid-column:1}
  .institution-person-role{grid-column:1}
  .institution-person-affiliations{grid-column:1 / -1}
  .institution-person-papers{grid-column:2;grid-row:1;text-align:right}
  .institution-person-name strong,.institution-person-name small,.institution-person-role small{white-space:normal}
  .institution-results-heading{margin-top:20px}
  .institution-paper-row{padding:13px}
  .institution-directory-page .pagination-row{flex-wrap:wrap}
  .institution-directory-page .pagination-row span{order:3;flex-basis:100%;text-align:center}
}
.tab-pane{padding:16px 0}
@media(max-width:640px){.tab-bar{overflow-x:auto;-webkit-overflow-scrolling:touch}.tab-btn{white-space:nowrap;padding:8px 12px;font-size:.82em}}

.hyp-chat{background:linear-gradient(135deg,var(--bg-subtle) 0%,var(--bg-stat) 100%);border:1px solid var(--border-medium);border-radius:var(--radius-lg);padding:20px 22px;margin:28px 0 8px}
.hyp-chat-label{font-size:.84em;color:var(--text-muted);margin-bottom:10px}
.hyp-chat-row{display:flex;gap:8px;align-items:center}
.hyp-chat-input{flex:1;padding:10px 14px;border:1px solid var(--border-medium);border-radius:20px;font-family:'Inter',sans-serif;font-size:.9em;outline:none;background:var(--bg-surface);color:var(--text-main)}
.hyp-chat-input:focus{border-color:var(--brand-accent)}
.hyp-chat-input::placeholder{color:var(--text-light)}
.hyp-chat-btn{padding:10px 18px;background:var(--brand-primary);color:var(--brand-contrast);border:none;border-radius:20px;font-family:'Inter',sans-serif;font-size:.88em;font-weight:500;cursor:pointer;white-space:nowrap}
.hyp-chat-btn:hover{background:var(--brand-hover)}
.hyp-chat-tag{font-size:.74em;color:var(--text-light);margin-top:10px}
.hyp-chat-tag a{color:var(--brand-accent)}
.signup-overlay{display:none;position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.5);z-index:1000;justify-content:center;align-items:center}
.signup-overlay.active{display:flex}
.signup-modal{background:var(--bg-surface);border-radius:var(--radius-lg);padding:32px;max-width:400px;width:90%;text-align:center;position:relative}
.signup-modal h3{font-family:'Literata','Georgia',serif;margin-bottom:12px}
.signup-modal p{font-size:.9em;color:var(--text-muted);margin-bottom:20px}
.signup-close{position:absolute;top:12px;right:14px;background:none;border:none;font-size:1.2em;cursor:pointer;color:var(--text-light)}
.signup-google{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;padding:12px;border:1px solid var(--border-medium);border-radius:8px;background:var(--bg-surface);color:var(--text-main);font-family:'Inter',sans-serif;font-size:.92em;font-weight:500;cursor:pointer;margin-bottom:12px}
.signup-google:hover{background:var(--bg-subtle)}
.signup-divider{display:flex;align-items:center;gap:12px;margin:12px 0;font-size:.82em;color:var(--text-light)}
.signup-divider::before,.signup-divider::after{content:'';flex:1;border-top:1px solid var(--border-light)}
.signup-email-row{display:flex;gap:8px}
.signup-email-input{flex:1;padding:10px 12px;border:1px solid var(--border-medium);border-radius:8px;font-family:'Inter',sans-serif;font-size:.88em;outline:none;background:var(--bg-surface);color:var(--text-main)}
.signup-email-input:focus{border-color:var(--brand-accent)}
.signup-email-btn{padding:10px 16px;background:var(--brand-primary);color:var(--brand-contrast);border:none;border-radius:8px;font-family:'Inter',sans-serif;font-size:.88em;font-weight:500;cursor:pointer}
.signup-email-btn:hover{background:var(--brand-hover)}
@media(max-width:640px){.signup-modal{padding:24px 18px}}

.working-on-example { background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 16px 20px; margin: 12px 0; }
.working-on-example .wo-example-label { font-size: 0.76em; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-light); font-weight: 600; margin-bottom: 8px; }
@media(max-width:640px){.bc-locked{padding:24px 16px}.bc-nugget{padding:16px 18px}}

/* ── Account page ─────────────────────────────────────────── */
.account-shell { max-width: 860px; margin: 0 auto; padding: 4px 0 52px; }
.account-header { display: flex; align-items: center; gap: 20px; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border-light); }
.account-avatar-lg { width: 56px; height: 56px; border-radius: 50%; background: var(--brand-primary); color: var(--brand-contrast); display: flex; align-items: center; justify-content: center; font-size: 1.3em; font-weight: 600; letter-spacing: 0.03em; flex-shrink: 0; }
.account-avatar-lg img { width: 100%; height: 100%; object-fit: contain; object-position: center; border-radius: 50%; display: block; background: var(--bg-subtle); }
.account-info { flex: 1; min-width: 0; }
.account-info h1 { font-family: 'Literata', serif; font-size: 1.4em; margin-bottom: 2px; }
.account-info .account-email { color: var(--text-muted); font-size: 0.88em; }
.account-header-actions { display: flex; gap: 10px; flex-shrink: 0; align-items: center; }
@media(max-width:640px) { .account-header { flex-wrap: wrap; } .account-header-actions { width: 100%; } }
.account-link-btn, .account-signout { display: inline-flex; align-items: center; justify-content: center; padding: 8px 18px; border: 1px solid var(--border-medium); border-radius: var(--radius-md); background: var(--bg-surface); color: var(--text-muted) !important; font-size: 0.84em; font-weight: 500; transition: background 0.15s, border-color 0.15s; cursor: pointer; }
.account-link-btn:hover, .account-signout:hover { background: var(--bg-subtle); text-decoration: none !important; }
.account-signout-form { margin: 0; }
.account-section { margin-bottom: 36px; }
.account-section-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.account-section h2 { font-family: 'Literata', serif; font-size: 1.1em; margin-bottom: 0; }
.account-empty-hint { color: var(--text-light); font-size: 0.88em; }
/* Publishing from Althea: the preview page, published widgets, account list. */
.publish-preview { max-width: 860px; margin: 0 auto; }
.publish-preview--error { text-align: center; padding: 48px 0; }
.publish-error-message { color: var(--text-muted); line-height: 1.7; max-width: 560px; margin: 0 auto 24px; }
.publish-banner { background: var(--bg-subtle); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 10px 14px; margin-bottom: 16px; font-size: 0.92em; color: var(--text-muted); }
.publish-notice { background: #fff8e6; border: 1px solid #f1d9a0; border-radius: var(--radius-md); padding: 10px 14px; margin-bottom: 12px; font-size: 0.92em; }
.publish-article h1 { margin-bottom: 4px; }
.publish-byline { color: var(--text-muted); margin-bottom: 20px; }
.publish-form { border: 1px solid var(--border-medium); border-radius: var(--radius-md); padding: 18px; margin-bottom: 28px; background: var(--bg-surface); }
.publish-label { display: block; font-weight: 600; margin-bottom: 6px; }
.publish-label-hint { font-weight: 400; color: var(--text-light); font-size: 0.85em; margin-left: 6px; }
.publish-form textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 10px; border: 1px solid var(--border-medium); border-radius: var(--radius-md); resize: vertical; min-height: 120px; }
.publish-terms { color: var(--text-muted); font-size: 0.9em; line-height: 1.6; margin: 12px 0; }
.publish-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.publish-button { display: inline-block; padding: 10px 22px; border-radius: var(--radius-md); background: var(--brand-primary); color: var(--brand-contrast) !important; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.publish-button:hover { background: var(--brand-hover); text-decoration: none !important; }
.publish-button:disabled { opacity: 0.6; cursor: default; }
.publish-cancel { color: var(--text-muted); }
.publish-status { margin-top: 10px; color: var(--text-muted); }
.publication-widget { margin: 20px 0; border: 1px solid var(--border-light); border-radius: 16px; overflow: hidden; }
.publication-widget-box { background: #fff; }
.publication-widget-frame { display: block; width: 100%; height: clamp(320px, 56vh, 500px); border: 0; background: #fff; }
.publication-widget-caption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 12px; font-size: 13px; line-height: 20px; color: var(--text-muted); padding: 8px 12px 12px; }
.publication-widget-caption > span { flex: 1 1 240px; min-width: 0; overflow-wrap: anywhere; }
.publication-widget-caption > a { flex: 0 0 auto; white-space: nowrap; }
.publication-video { margin: 20px 0; border: 1px solid var(--border-light); border-radius: 16px; overflow: hidden; }
.publication-video > video { display: block; width: 100%; height: auto; max-height: 70vh; background: #000; }
.publication-video > figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 12px; font-size: 13px; line-height: 20px; color: var(--text-muted); padding: 8px 12px 12px; }
.publication-video > figcaption > span { flex: 1 1 240px; min-width: 0; overflow-wrap: anywhere; }
.publication-video > figcaption > a { flex: 0 0 auto; white-space: nowrap; }
.account-publication-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.account-publication-meta { color: var(--text-light); font-size: 0.82em; margin-left: auto; }
.account-list-link--muted { color: var(--text-light); }
.account-subtle-btn { display: inline-flex; align-items: center; justify-content: center; padding: 6px 12px; border: 1px solid var(--border-light); border-radius: var(--radius-md); background: transparent; color: var(--text-light); font-size: 0.78em; font-weight: 500; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.account-subtle-btn:hover { background: var(--bg-subtle); color: var(--text-muted); border-color: var(--border-medium); }
.account-subtle-btn:disabled { opacity: 0.45; cursor: default; pointer-events: none; }
.account-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--border-light); }
.account-list-item { border-bottom: 1px solid var(--border-light); }
.account-list-link { display: flex; align-items: center; gap: 10px; padding: 10px 4px; color: var(--text-main); text-decoration: none; font-size: 0.92em; }
.account-list-link:hover { background: var(--bg-subtle); text-decoration: none; }
.account-list-link img { flex-shrink: 0; margin-right: 0 !important; }
.account-list-link span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Recent activity ──────────────────────────────────────── */
.recent-list { list-style: none; padding: 0; }
.recent-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border-light); }
.recent-item:last-child { border-bottom: none; }
.recent-type { font-size: 0.7em; padding: 2px 8px; border-radius: 999px; font-weight: 500; text-transform: capitalize; background: var(--bg-stat); color: var(--text-muted); flex-shrink: 0; }
.recent-type-direction { background: var(--bg-tag); color: var(--brand-primary); }
.recent-type-paper { background: var(--bg-stat); color: var(--text-main); }
.recent-type-author { background: var(--bg-tag-author); color: #065f46; }
.recent-type-hypothesis { background: #fef3c7; color: #92400e; }
.recent-title { font-size: 0.9em; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Follow and save buttons ───────────────────────────────── */
.bookmark-btn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--border-medium); border-radius: var(--radius-md); background: var(--bg-surface); color: var(--text-muted); font-size: 0.82em; font-weight: 500; cursor: pointer; transition: all 0.15s; white-space: nowrap; }
.bookmark-btn:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.bookmark-btn.bookmarked { border-color: var(--brand-primary); color: var(--brand-primary); background: var(--bg-tag); }
.bookmark-btn.bookmarked svg { fill: var(--brand-primary); }
.breadcrumb-action .author-export { margin-right: 8px; }
.author-export { position: relative; }
.author-export > summary { list-style: none; }
.author-export > summary::-webkit-details-marker { display: none; }
.author-export[open] > summary { border-color: var(--brand-primary); color: var(--brand-primary); }
.author-export-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; display: grid; gap: 2px; min-width: 10rem; padding: 6px; border: 1px solid var(--border-medium); border-radius: var(--radius-md); background: var(--bg-surface); box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
.author-export-menu button { display: flex; justify-content: space-between; gap: 16px; width: 100%; padding: 8px 10px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--text-main); font: inherit; font-size: 0.88em; text-align: left; cursor: pointer; }
.author-export-menu button:hover, .author-export-menu button:focus-visible { background: var(--bg-subtle); }
.author-export-menu button span { color: var(--text-muted); }

