/* Ramanand — compact academic portfolio. High contrast is the default. */
:root {
  --paper: #ffffff;
  --panel: #f4f4f4;
  --ink: #111111;
  --muted: var(--ink);
  --accent: #004c43;
  --on-accent: #ffffff;
  --line: #777777;
  --display: 'Fraunces', Georgia, serif;
  --body: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: ui-monospace, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #141410; --panel: #262620; --ink: #ffffff;
  --muted: var(--ink); --accent: #a4f1e5; --on-accent: #00201c; --line: #919188;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1.0625rem/1.65 var(--body); }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
button, select { font: inherit; }
button, select, summary { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
figure, dl { margin: 0; }
p { margin: 0 0 .55rem; }
p:last-child { margin-bottom: 0; }
ul { padding-left: 1.25rem; }
li + li { margin-top: .35rem; }
h1, h2, h3 { font-family: var(--display); line-height: 1.25; font-weight: 400; letter-spacing: -.02em; margin: 0 0 .5rem; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
strong { font-weight: 600; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
:target { scroll-margin-top: 1rem; }
.wrap { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; top: .5rem; left: 1rem; z-index: 5; min-height: 48px; padding: .6rem 1rem; background: var(--accent); color: var(--on-accent); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.name-link { font: 400 1.6rem var(--display); color: var(--ink); text-decoration: none; min-height: 48px; display: inline-flex; align-items: center; }
.site-nav ul { display: flex; list-style: none; padding: 0; margin: 0; gap: .5rem; }
.site-nav li + li { margin-top: 0; }
.site-nav a { display: flex; min-height: 48px; align-items: center; padding: .5rem .7rem; color: var(--ink); text-decoration: none; }
.site-nav a:hover, .site-nav [aria-current="page"] { text-decoration: underline; color: var(--accent); }
.site-nav [aria-current="page"] { font-weight: 600; }
.site-layout { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 3rem; padding-top: 1.25rem; }
.profile { align-self: start; border-right: 1px solid var(--line); padding-right: 1.5rem; }
.profile-portrait { width: 144px; height: 144px; object-fit: cover; border-radius: 4px; margin-bottom: 1rem; }
.profile-name { font: 400 1.7rem/1.25 var(--display); color: var(--ink); margin-bottom: .6rem; }
.profile-role { font-size: 1rem; }
.profile-links { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; margin-block: .75rem; }
.profile-links a { min-height: 48px; display: inline-flex; align-items: center; font-size: 1rem; }
.profile-note { padding-top: 1rem; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
.profile-note strong { display: block; color: var(--ink); margin-bottom: .25rem; }
main { min-width: 0; }
main > .wrap { width: 100%; margin: 0; }
.page-header { padding-bottom: .65rem; }
.page-intro, .home-contact p { max-width: 68ch; }
.page-intro { color: var(--muted); }
.eyebrow { display: block; color: var(--accent); font-size: .8rem; font-weight: 600; letter-spacing: .05em; margin-bottom: .45rem; }
.section { padding-block: .75rem; }
.section + .section { border-top: 1px solid var(--line); }
.patents + .publications { border-top: 0; }
.section-head { margin-bottom: .6rem; }
.section-head p { color: var(--muted); }
.rule { margin: 0; border: 0; border-top: 1px solid var(--line); }
.section-link { margin-top: .5rem; }
.actions, .pub-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .65rem; }
.button, .text-action, .pub-btn, .viewall, .backlink { min-height: 48px; display: inline-flex; align-items: center; justify-content: flex-start; gap: .35rem; font-size: 1rem; }
.button { padding: .55rem 1rem; border: 1px solid var(--accent); border-radius: 4px; text-decoration: none; background: var(--accent); color: var(--on-accent); }
.button.secondary { color: var(--accent); background: transparent; }
.button:hover { text-decoration: underline; }
.pub-list, .plain-list { list-style: none; padding: 0; margin: 0; }
.pub-row, .pub { padding-block: 1rem; border-top: 1px solid var(--line); }
.pub-row .meta, .pub-year { font-size: .875rem; color: var(--accent); margin-bottom: .3rem; }
.pub-row h3, .pub-title { font: 500 1.125rem/1.5 var(--body); letter-spacing: 0; margin-bottom: .4rem; }
.pub-row .authors, .pub-authors { color: var(--muted); font-size: .9375rem; margin-bottom: .3rem; }
.pub-venue, .kwset { color: var(--muted); font-size: .9375rem; margin-bottom: .35rem; }
.kwset { font-size: .875rem; }
.me { font-weight: 600; color: var(--ink); }
.pub-actions { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: .25rem 1.5rem; margin-top: .25rem; }
.citation[open] { grid-column: 1 / -1; }
.citation { margin-top: .1rem; }
.citation summary { display: list-item; min-height: 48px; padding-block: .65rem; color: var(--accent); font-size: 1rem; }
.citation pre { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--panel); padding: 1rem; border: 1px solid var(--line); font: .875rem/1.6 var(--mono); }
.copy-status { font-size: .875rem; color: var(--muted); margin-top: .5rem; }
.worklist { display: grid; gap: 0; }
.work { padding-block: 1.25rem; border-top: 1px solid var(--line); }
.work-title { font-size: 1.35rem; }
.work-desc, .work-meta { color: var(--muted); }
.work-meta { font-size: .875rem; margin-block: .5rem; }
.work-status { display: inline-flex; color: var(--accent); font-size: .875rem; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .65rem; }
.chip { font-size: .8rem; padding: .1rem .45rem; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); }
.callout { padding: 1rem 1.15rem; border-left: 3px solid var(--accent); background: var(--panel); margin-block: .75rem; }
.callout h3 { font-size: 1.3rem; }
.callout ul { margin-block: .5rem; }
.post { display: block; padding-block: 1.1rem; border-top: 1px solid var(--line); text-decoration: none; }
.post:hover .post-title { text-decoration: underline; }
.post-meta { font-size: .875rem; color: var(--muted); margin-bottom: .4rem; }
.post-title { font-size: 1.35rem; color: var(--ink); }
.post-desc { color: var(--muted); }
.post-cta { display: inline-flex; align-items: center; min-height: 48px; font-size: 1rem; }
.entry { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 1.25rem; padding-block: 1rem; border-top: 1px solid var(--line); }
.entry-date { font-size: .9375rem; color: var(--muted); }
.entry-role { font-size: 1.25rem; }
.entry-org { color: var(--accent); font-size: 1rem; margin-bottom: .4rem; }
.entry-desc { color: var(--muted); }
.skillgroup { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.plain-list li { padding-block: .75rem; border-bottom: 1px solid var(--line); }
.compact-projects { list-style: none; padding: 0; margin: 0; }
.compact-projects li { padding-block: .8rem; border-top: 1px solid var(--line); }
.compact-projects h3 { font: 500 1.125rem/1.5 var(--body); margin-bottom: .25rem; }
.compact-projects p { color: var(--muted); font-size: 1rem; }
.home-contact { padding-top: .4rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .9375rem; margin-bottom: 1rem; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 1rem; margin-bottom: 1.25rem; border: 1px solid var(--line); }
.facts dt { font-size: .875rem; color: var(--muted); }
.facts dd { margin: 0; font-size: 1rem; }
.case-section { border-top: 1px solid var(--line); padding-block: .75rem; }
.case-section h2 { font-size: 1.6rem; }
.concept-figure { background: var(--panel); border: 1px solid var(--line); padding: 1rem; margin-block: 1rem; }
.concept-figure img { width: min(100%, 480px); margin-inline: auto; background: #eeeeea; border-radius: 3px; padding: .5rem; }
figcaption { font-size: .875rem; color: var(--muted); margin-top: .6rem; }
.gal-group { margin-bottom: 1.75rem; }
.gal-head { font: 400 1.3rem/1.4 var(--display); margin-bottom: .75rem; }
.gd { color: var(--muted); font: .875rem/1.5 var(--body); display: block; }
.gal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.plate-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.plate-img a { display: block; }
.site-footer { border-top: 1px solid var(--line); margin-top: 1.75rem; padding-block: 1rem 1.5rem; }
.footer-row { display: flex; justify-content: space-between; align-items: start; gap: 1rem; flex-wrap: wrap; }
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-links a { display: inline-flex; align-items: center; min-height: 48px; font-size: .9375rem; }
.colophon { font-size: .875rem; color: var(--muted); margin-top: .6rem; }
.appearance summary { min-height: 48px; display: list-item; padding-block: .65rem; font-size: .9375rem; color: var(--accent); }
.theme-control { display: flex; align-items: center; gap: .5rem; }
.theme-control select { min-height: 48px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 3px; padding: .4rem; }
@media (max-width: 900px) {
  .site-layout { grid-template-columns: 184px minmax(0, 1fr); gap: 2rem; }
  .profile { padding-right: 1rem; }
  .entry { grid-template-columns: 1fr; gap: .25rem; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 2.5rem); }
  .site-header { display: block; padding-block: .5rem; }
  .site-nav ul { justify-content: space-between; gap: .25rem; }
  .site-nav a { padding-inline: .25rem; font-size: 1rem; }
  .site-layout { display: block; padding-top: 1.25rem; }
  .profile { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 0 1rem; border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 1rem; margin-bottom: 1.25rem; }
  .profile-home-image { grid-row: span 2; }
  .profile-portrait { width: 80px; height: 80px; margin: 0; }
  .profile-name { font-size: 1.4rem; margin-bottom: .25rem; }
  .profile-role { font-size: .9375rem; line-height: 1.5; }
  .profile-links { flex-direction: row; gap: 1rem; grid-column: 1 / -1; margin-block: .5rem 0; }
  .profile-note { grid-column: 1 / -1; border: 0; padding-top: .5rem; }
  .profile-note strong { display: block; }
  .section { padding-block: .65rem; }
  .page-header { padding-bottom: .6rem; }
  .facts, .skillgroup, .gal-grid { grid-template-columns: 1fr; }
  .facts { gap: .75rem; }
  .theme-control { flex-wrap: wrap; }
  .footer-links { gap: .75rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (forced-colors: active) {
  .button, .concept-figure, .facts, .citation pre, .callout, select { border: 1px solid CanvasText; }
  .button { color: LinkText; background: Canvas; }
  :focus-visible { outline-color: Highlight; }
}
@media print {
  :root { --paper: #fff !important; --panel: #fff !important; --ink: #000 !important; --muted: #000 !important; --accent: #000 !important; --line: #aaa !important; color-scheme: light; }
  .site-header, .site-footer, .profile, .skip-link, .copy-button, .print-button { display: none !important; }
  .site-layout { display: block; width: 100%; padding: 0; }
  body { font-size: 10.5pt; }
  h1 { font-size: 24pt; } h2 { font-size: 17pt; } h3 { font-size: 13pt; }
  .section { padding-block: .75rem; }
  .entry, .pub, .pub-row { break-inside: avoid; }
  .citation { display: none; }
}
/* Homepage publication cards and updated researcher profile. */
.name-link { gap: .8rem; letter-spacing: .035em; }
.brand-subtitle { font: 400 .8rem/1.4 var(--body); color: var(--muted); letter-spacing: 0; }
.profile-email { display: block; width: fit-content; font-size: .875rem; line-height: 1.5; overflow-wrap: anywhere; max-width: 100%; border: 1px solid var(--line); border-radius: 4px; padding: .25rem .4rem; }
.profile-links { flex-direction: row; flex-wrap: wrap; gap: .25rem .75rem; margin-block: .15rem .65rem; }
.profile-links a { font-size: .875rem; min-height: 32px; }
.profile-activities { margin-top: 1rem; padding-top: .85rem; border-top: 1px solid var(--line); }
.profile-activities h2 { font: 600 .875rem/1.4 var(--body); letter-spacing: 0; margin-bottom: .5rem; }
.profile-activities ul { list-style: none; margin: 0; padding: 0; }
.profile-activities li { font-size: .8125rem; line-height: 1.5; padding-block: .5rem; }
.profile-activities li + li { border-top: 1px solid var(--line); margin: 0; }
.profile-activities span, .profile-activities strong { display: block; }
.activity-date { color: var(--accent); font-size: .75rem; }
.profile-activities strong { font-weight: 500; }
.profile-activities li > span:last-child { color: var(--muted); }
.research-area-group { margin-top: .55rem; }
.research-area-group h2 { font-size: 1.3rem; margin-bottom: .5rem; }
.research-areas { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; margin: 0; }
.research-areas li { margin: 0; padding: .25rem .7rem; border: 1px solid var(--line); border-radius: 999px; font-size: .8125rem; line-height: 1.5; color: var(--ink); background: var(--panel); }
.paper-stack { display: grid; gap: .5rem; }
.paper-card { padding: .85rem 1rem .5rem; border: 1px solid var(--line); border-radius: 5px; }
.paper-card .pub-year { margin-bottom: .2rem; }
.paper-card .pub-title { font-size: 1.0625rem; line-height: 1.4; margin-bottom: .3rem; }
.paper-card .pub-authors, .paper-card .pub-venue { font-size: .875rem; line-height: 1.5; margin-bottom: .3rem; }
.paper-card .pub-actions { gap: .2rem 1.25rem; margin-top: .1rem; }
.paper-card .pub-btn, .paper-card .citation summary { font-size: .9375rem; }
.patent-card { border: 1px solid var(--line); border-radius: 5px; padding: .85rem 1rem .5rem; }
.patent-card h3 { font: 500 1.0625rem/1.4 var(--body); margin-bottom: .3rem; }
.patent-status { font-size: .9375rem; color: var(--accent); }
.patent-facts { margin-block: .75rem; }
.patent-facts > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: .75rem; margin-bottom: .4rem; }
.patent-facts dt { color: var(--muted); font-size: .9375rem; }
.patent-facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .brand-subtitle { font-size: .75rem; }
  .profile-activities { grid-column: 1 / -1; width: 100%; }
  .profile-activities ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem 1rem; }
  .profile-activities li { min-width: 0; }
  .profile-activities li + li { border: 0; }
  .profile-activities li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .paper-card { padding: .75rem .8rem .4rem; }
  .patent-facts > div { grid-template-columns: 1fr; gap: .1rem; }
}
/* Compact numbered projects; the complete overviews live in native dialogs. */
.numbered-projects { margin: 0; padding-left: 1.8rem; }
.numbered-projects li { padding: .5rem 0 .6rem .4rem; }
.numbered-projects li + li { margin-top: .1rem; }
.numbered-projects li::marker { color: var(--accent); font-weight: 500; }
.project-index { padding-top: .25rem; }
.project-trigger { display: block; min-height: 48px; color: var(--ink); text-decoration: none; padding-block: .15rem; }
.project-summary { font-size: 1.0625rem; line-height: 1.5; }
.project-summary strong { color: var(--accent); font-weight: 600; }
.project-trigger:hover .project-summary, .project-trigger:focus-visible .project-summary { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.numbered-projects .chips { margin-top: .4rem; }
.project-fallback { margin-block: 1rem; }
.project-fallback > summary { min-height: 48px; color: var(--accent); padding-block: .6rem; cursor: pointer; }
.project-dialog { width: min(760px, calc(100% - 2rem)); max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); box-shadow: 0 12px 48px #0004; }
.project-dialog[open] { display: flex; flex-direction: column; }
.project-dialog::backdrop { background: rgb(0 0 0 / .55); }
.dialog-header { display: flex; gap: 1rem; align-items: start; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.dialog-header h2 { font-size: 1.55rem; margin: .3rem 0 0; }
.dialog-close { flex-shrink: 0; }
.dialog-content { padding: 1.1rem 1.25rem; overflow-y: auto; overscroll-behavior: contain; }
.dialog-content .page-intro { margin-bottom: 1rem; }
.dialog-content .facts { margin-top: 1rem; }
.dialog-content .case-section { padding-block: 1rem; }
.dialog-content .case-section h3 { font-size: 1.3rem; }
.dialog-status { color: var(--accent); font-size: .9375rem; }
@media (max-width: 640px) {
  .numbered-projects { padding-left: 1.4rem; }
  .numbered-projects li { padding-left: .2rem; }
  .project-dialog { width: calc(100% - 1rem); max-height: calc(100vh - 1rem); max-height: calc(100dvh - 1rem); }
  .dialog-header { gap: .6rem; padding: .75rem; }
  .dialog-header h2 { font-size: 1.2rem; }
  .dialog-content { padding: 1rem .75rem; }
  .dialog-close { padding-inline: .75rem; }
}
@media (forced-colors: active) { .project-dialog { border: 2px solid CanvasText; box-shadow: none; } }
.activity-date { font-weight: 700; font-size: .8125rem; }
.paper-meta { margin: 0 0 .3rem; font-size: .875rem; line-height: 1.5; color: var(--muted); }
.paper-meta .me { color: var(--ink); }
.profile-note { font-size: .8125rem; line-height: 1.5; }
.profile-note > span { display: block; }
.profile-note strong { font-weight: 500; margin-bottom: 0; }
/* Three visible lines per summary; full project details remain in the dialog. */
.project-summary, .writing-summary { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; font-size: 1.0625rem; line-height: 1.5; }
.numbered-writing { margin: 0; padding-left: 1.8rem; }
.numbered-writing li { padding: .5rem 0 .6rem .4rem; }
.numbered-writing li + li { margin-top: .1rem; }
.numbered-writing li::marker { color: var(--accent); font-weight: 500; }
.writing-index { padding-top: .25rem; }
.writing-trigger { display: block; min-height: 48px; color: var(--ink); text-decoration: none; padding-block: .15rem; }
.writing-summary strong { color: var(--accent); font-weight: 600; }
.writing-trigger:hover .writing-summary, .writing-trigger:focus-visible .writing-summary { text-decoration: underline; text-underline-offset: .2em; }
.numbered-writing .chips { margin-top: .4rem; }
@media (max-width: 640px) { .numbered-writing { padding-left: 1.4rem; } .numbered-writing li { padding-left: .2rem; } }
@media print { .project-summary, .writing-summary { display: block; overflow: visible; -webkit-line-clamp: unset; line-clamp: unset; } }

/* Compact CV: spacing and type establish groups without repeated rules. */
.cv-page .page-header { padding-bottom: .65rem; }
.cv-page .section { padding-block: .45rem; border: 0; }
.cv-page .entry { padding-block: .35rem; border: 0; gap: .6rem; }
.cv-page .entry-date { font-weight: 600; color: var(--ink); }
.cv-page .entry-role, .cv-page .skillgroup h3, .cv-page .callout h3 { font: 600 1.0625rem/1.4 var(--body); letter-spacing: 0; margin-bottom: .15rem; }
.cv-page .entry-org { margin-bottom: .2rem; font-size: .9375rem; }
.cv-page .entry-desc, .cv-page .skillgroup p { font-size: 1rem; line-height: 1.5; }
.cv-page .pub-row { border: 0; padding-block: .35rem; }
.cv-page .pub-row h3 { font-size: 1.0625rem; margin-bottom: .15rem; }
.cv-page .plain-list li { border: 0; padding-block: .1rem; margin: 0; font-size: .9375rem; }
.cv-page .callout { padding: .7rem .85rem; border: 0; }
.cv-page .callout p { font-size: .9375rem; }

.cv-page .workshop-list { list-style: disc; padding-left: 1.25rem; }

.contact-line { display: block; font-size: 1rem; margin-top: .25rem; overflow-wrap: anywhere; }

.home-intro .page-intro, .home-intro .home-contact p { max-width: none; color: var(--ink); }

.mobile-contact-email { display: none; }
@media (max-width: 640px) { .mobile-contact-email { display: block; } }

.profile-home-image { display: block; width: fit-content; }
.profile-name a { color: inherit; text-decoration: none; }
.profile-name a:hover { text-decoration: underline; }

.pub-type { display: inline-block; margin-left: .45rem; padding: .05rem .4rem; border: 1px solid var(--line); border-radius: 3px; background: var(--panel); color: var(--ink); font: 500 .75rem/1.5 var(--body); vertical-align: baseline; }

.publication-numbered { margin: 0; padding-left: 1.8rem; list-style: decimal; }
.publication-numbered > li { padding-left: .2rem; margin: 0; min-width: 0; }
.publication-numbered > li::marker { color: var(--accent); font-weight: 600; font-size: 1rem; }
@media (max-width: 640px) { .publication-numbered { padding-left: 1.4rem; } }

.collaboration-block { background: var(--panel); border: 1px solid var(--line); border-radius: 5px; padding: .85rem 1rem; margin-block: .5rem; }
.section.collaboration-block { border-top: 1px solid var(--line); padding: .85rem 1rem; }

/* Photo collage retains original image proportions and readable captions. */
.photo-collage { columns: 3; column-gap: .75rem; }
.collage-photo { break-inside: avoid; margin: 0 0 .75rem; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; background: var(--panel); }
.collage-photo a { display: block; }
.collage-photo img { width: 100%; height: auto; }
.collage-photo figcaption { padding: .5rem .6rem; margin: 0; font-size: .8125rem; line-height: 1.4; }
.collage-photo figcaption strong, .collage-photo figcaption span { display: block; }
.collage-photo figcaption span { margin-top: .2rem; font-size: .75rem; }
@media (max-width: 1000px) { .photo-collage { columns: 2; } }
@media (max-width: 480px) { .photo-collage { columns: 1; } }

.footer-links a { gap: .4rem; }
.footer-icon { display: block; flex: 0 0 18px; width: 18px; height: 18px; }

.photo-dialog { padding: 0; border: 0; background: transparent; color: var(--ink); width: min(900px, calc(100vw - 2rem)); max-width: calc(100vw - 2rem); max-height: calc(100dvh - 2rem); overflow: auto; }
.photo-dialog::backdrop { background: rgb(0 0 0 / .78); backdrop-filter: blur(2px); }
.photo-dialog img { width: auto; max-width: 100%; max-height: 75dvh; object-fit: contain; margin-inline: auto; }
.photo-close { display: flex; margin: 0 0 .4rem auto; }
.photo-dialog p { background: var(--paper); padding: .5rem .75rem; font-size: .875rem; margin: 0; }

.footer-links a[aria-label] { justify-content: center; min-width: 32px; }

/* Each event has a shared caption tint; event names also identify the group. */
.collage-photo[data-event="brainio"] { --event-color: #8b5cf6; }
.collage-photo[data-event="etra"] { --event-color: #2563eb; }
.collage-photo[data-event="iinventiv"] { --event-color: #e69b16; }
.collage-photo[data-event="summit"] { --event-color: #059669; }
.collage-photo[data-event="ai-day"] { --event-color: #e64d85; }
.collage-photo[data-event="india-hci"] { --event-color: #c96328; }
.collage-photo[data-event="ulster"] { --event-color: #0891b2; }
.collage-photo figcaption { background: color-mix(in srgb, var(--event-color) 32%, var(--paper)); border-top: 5px solid var(--event-color); }

.photo-toolbar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; background: #111; color: #fff; padding: .4rem; }
.photo-navigation { display: flex; align-items: center; gap: .5rem; }
.photo-toolbar .button { border-color: #aaa; color: #fff; background: #111; min-height: 44px; padding: .4rem .6rem; font-size: .875rem; }
.photo-toolbar .photo-close { margin: 0; }
.photo-counter { font-size: .8125rem; white-space: nowrap; }
.photo-dialog img { max-height: 65dvh; }
@media (max-width: 480px) { .photo-toolbar { gap: .3rem; } .photo-navigation { gap: .3rem; } .photo-toolbar .button { padding-inline: .4rem; } }

.tmrm-logo { display: inline-block; height: 32px; width: 20px; color: var(--accent); flex-shrink: 0; }
.footer-brand-name { display: inline; }
.footer-brand-name .tmrm-logo { height: 22px; width: 14px; margin-inline: .15rem .4rem; vertical-align: middle; }

.profile-aarekh { width: fit-content; min-height: 44px; padding: .4rem .65rem; font-size: .875rem; gap: .45rem; }
.profile-aarekh svg { flex-shrink: 0; }
@media (max-width: 640px) { .profile-aarekh { grid-column: 1 / -1; margin-top: .35rem; } }

.aarekh-disclosure { position: relative; width: fit-content; }
.aarekh-disclosure > summary { display: flex; list-style: none; }
.aarekh-disclosure > summary::-webkit-details-marker { display: none; }
.aarekh-preview { position: absolute; z-index: 20; top: calc(100% + .25rem); left: 0; width: 280px; max-width: calc(100vw - 3rem); padding: .8rem; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); box-shadow: 0 6px 20px #0002; }
.aarekh-preview h3 { font: 600 1rem/1.4 var(--body); margin-bottom: .3rem; }
.aarekh-preview p { font-size: .875rem; line-height: 1.5; }
.aarekh-preview .text-action { font-size: .875rem; min-height: 32px; }
@media (max-width: 640px) { .aarekh-disclosure { grid-column: 1 / -1; } }

.profile-email { display: flex; align-items: center; gap: .35rem; color: var(--ink); background: transparent; font-family: var(--body); text-align: left; cursor: pointer; min-height: 28px; }
.profile-email:hover .email-copy-icon { color: var(--accent); }
.email-copy-icon { flex-shrink: 0; }
.profile-email-copy { position: relative; width: fit-content; max-width: 100%; }
.email-copy-status { position: absolute; z-index: 25; top: calc(100% + .2rem); left: 0; padding: 0; font-size: .75rem; line-height: 1.5; color: var(--ink); background: var(--paper); white-space: nowrap; }
.email-copy-status:empty { display: none; }
