/* kampouridis.net, Scholar Navy */
:root {
  --navy: #1C2B45;
  --navy-2: #34466A;
  --side-text: #C9D3E3;
  --gold: #C2A36B;
  --ink: #1E2330;
  --muted: #4E5566;
  --line: #DDE2EA;
  --link: #1F4E8C;
  --link-hover: #12305A;
  --serif: 'Crimson Pro', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #FFFFFF; color: var(--ink); font: 19px/1.6 var(--serif); }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.side :focus-visible { outline-color: var(--gold); }
img { max-width: 100%; height: auto; }

.skip { position: absolute; left: -9999px; top: 0; background: #FFFFFF; padding: 8px 12px; z-index: 10; font-family: var(--sans); }
.skip:focus { left: 8px; top: 8px; }

.shell { display: flex; min-height: 100vh; }

/* Sidebar */
.side {
  width: 340px; flex-shrink: 0; background: var(--navy); color: #FFFFFF;
  padding: 56px 40px; display: flex; flex-direction: column; gap: 26px;
  font-family: var(--sans);   /* scrolls with the page (not pinned), full height of the page */
}
.side a { color: #FFFFFF; }
.portrait { width: 170px; height: 170px; object-fit: cover; object-position: center top; border-radius: 4px; background: var(--navy-2); }
.portrait-empty { display: flex; align-items: center; justify-content: center; color: var(--side-text); font-size: 14px; }
.id { display: flex; flex-direction: column; gap: 12px; }
.name { font-family: var(--serif); font-size: 30px; font-weight: 700; line-height: 1.15; text-decoration: none; }
.rule { width: 48px; height: 2px; background: var(--gold); }
.titles { margin: 0; font-size: 17px; line-height: 1.45; color: var(--side-text); }
.nav ul { list-style: none; margin: 0; padding: 0; font-size: 18px; }
.nav a { display: flex; align-items: center; min-height: 40px; padding-left: 14px; border-left: 3px solid transparent; color: var(--side-text); text-decoration: none; }
.nav a:hover { color: #FFFFFF; }
/* Current page: white and bold, marked with a thin gold bar (no bullet). */
.nav a[aria-current="page"] { color: #FFFFFF; font-weight: 700; border-left-color: var(--gold); }
.langs { margin: 0; display: flex; gap: 14px; font-size: 15px; }
.langs a { color: var(--side-text); text-decoration: none; }
.langs a[aria-current="true"] { color: #FFFFFF; font-weight: 700; }
.side-links { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.side-links a { display: inline-flex; align-items: center; gap: 10px; color: var(--side-text); text-decoration: none; }
.side-links a:hover { color: #FFFFFF; }
.side-links a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.side-links .ico { flex-shrink: 0; color: var(--gold); }

/* Main column */
.main { flex-grow: 1; min-width: 0; padding: 72px 80px 40px; display: flex; flex-direction: column; }
.main > * { max-width: 920px; }
.page-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
h1 { margin: 0; font-size: 46px; line-height: 1.1; font-weight: 700; }
h2 { font-size: 28px; line-height: 1.2; font-weight: 700; margin: 0; }
.lead { margin: 0; font-size: 21px; line-height: 1.65; color: var(--muted); max-width: 760px; }
.notice { font-size: 19px; }
.foot { margin-top: auto; padding-top: 28px; border-top: 1px solid var(--line); font-family: var(--sans); font-size: 15px; color: var(--muted); }

/* Publications */
.pub-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; font-family: var(--sans); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--navy); border-radius: 4px; color: var(--navy); text-decoration: none; font-size: 15px; font-weight: 600;
}
.filters a[aria-current="true"] { background: var(--navy); color: #FFFFFF; }
.filters .n { font-weight: 400; opacity: 0.8; }
.search { display: flex; flex-direction: column; gap: 6px; min-width: 300px; }
.search label { font-size: 14px; color: var(--muted); }
.search-row { display: flex; gap: 8px; }
.search input {
  -webkit-appearance: none; appearance: none;   /* Safari otherwise draws its own rounded search box */
  flex-grow: 1; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid #B9C2D0; border-radius: 4px;
  font: 16px var(--sans); color: var(--ink); background: #FFFFFF;
}
.search button {
  -webkit-appearance: none; appearance: none;
  min-height: 44px; padding: 0 18px; border: 0; border-radius: 4px; background: var(--navy); color: #FFFFFF;
  font: 600 15px var(--sans); cursor: pointer;
}
.count { font-family: var(--sans); font-size: 15px; color: var(--muted); margin: 0 0 8px; }
.pub-year { padding-top: 32px; }
.pub-year h2 { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.pubs { list-style: none; margin: 0; padding: 0; }
.pub { padding: 14px 0; border-bottom: 1px solid var(--line); }
.pub p { margin: 0; }
.pub-cite { font-size: 18px; line-height: 1.6; }
.pub-title { font-weight: 700; }
.pub-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 4px; font-family: var(--sans); font-size: 15px; }
.pub-kind { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); }

/* Publication type markers: colour and shape differ, and the text label always stays */
.mark { display: inline-block; flex-shrink: 0; width: 11px; height: 11px; }
.mark-journal { background: #1F4E8C; border-radius: 2px; }
.mark-conference { background: #2E7D32; border-radius: 50%; }
.mark-chapter { width: 9px; height: 9px; margin: 0 1px; background: #A86A00; border-radius: 1px; transform: rotate(45deg); }
.mark-thesis { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 11px solid #AD1457; }
.mark-other { border: 2px solid #6B7280; border-radius: 50%; }
.filters a[aria-current="true"] .mark { filter: drop-shadow(1px 0 0 #FFFFFF) drop-shadow(-1px 0 0 #FFFFFF) drop-shadow(0 1px 0 #FFFFFF) drop-shadow(0 -1px 0 #FFFFFF); }
.pub-meta a { font-weight: 600; }

/* Tablets and phones */
@media (max-width: 960px) {
  .shell { flex-direction: column; }
  /* Compact header: small portrait beside the name, then the menu. */
  .side { width: auto; height: auto; position: static; padding: 20px 20px 16px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 16px; align-items: center; }
  .portrait { width: 80px; height: 80px; }
  .id { gap: 6px; }
  .name { font-size: 24px; }
  .titles { font-size: 15px; line-height: 1.4; }
  .nav, .langs, .side-links { grid-column: 1 / -1; }
  .nav ul { display: flex; flex-wrap: wrap; gap: 0 18px; font-size: 17px; }
  .nav a { padding-left: 0; min-height: 44px; border-left: 0; border-bottom: 2px solid transparent; }
  .nav a[aria-current="page"] { border-bottom-color: var(--gold); }
  .side-links { flex-direction: row; flex-wrap: wrap; gap: 8px 18px; margin: 0; font-size: 15px; }
  .main { padding: 32px 20px 32px; }
  h1 { font-size: 36px; }
  .lead { font-size: 19px; }
  .search { min-width: 0; width: 100%; }
}

/* Content pages */
.intro { display: flex; flex-direction: column; gap: 18px; margin-bottom: 8px; }
.intro h1 { font-size: 44px; max-width: 840px; }
.intro p, .sec p { margin: 0; max-width: 780px; font-size: 19px; line-height: 1.7; }
.sec { padding-top: 44px; display: flex; flex-direction: column; gap: 18px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.sec-link { font-family: var(--sans); font-size: 16px; font-weight: 600; white-space: nowrap; }
.meta { font-family: var(--sans); font-size: 15px; color: var(--muted); }
.meta.strong { color: var(--ink); font-weight: 700; }
.placeholder { color: var(--muted); }
.rows, .news { list-style: none; margin: 0; padding: 0; }
.rows li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 18px; line-height: 1.55; }
.news { border-top: 1px solid var(--line); max-width: 820px; }
.news li { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.5; }
.news .date { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--muted); padding-top: 2px; }
.news a { font-family: var(--sans); font-size: 15px; font-weight: 600; text-decoration: none; }
.news a:hover { text-decoration: underline; }
/* Completed PhDs on the Group page: year, then name, thesis title and a PDF link. */
.alumni { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); max-width: 820px; }
.alumni li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.alumni p { margin: 0; }
.alumni-year { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--muted); padding-top: 3px; }
.alumni-name { font-size: 19px; font-weight: 700; line-height: 1.35; }
.alumni-name .meta { font-weight: 400; margin-left: 6px; }
.alumni-thesis { font-size: 17px; line-height: 1.5; color: var(--ink); margin-top: 2px !important; }
.alumni-links { font-family: var(--sans); font-size: 15px; margin-top: 4px !important; }
.alumni-links a { font-weight: 600; text-decoration: none; }
.alumni-links a:hover { text-decoration: underline; }
/* The same layout for Media & Talks; a wider year column for ranges such as 2011–2015. */
.entries li { grid-template-columns: 88px minmax(0, 1fr); }
.entries .meta { font-family: var(--sans); font-size: 15px; margin-top: 2px; }
/* About page: date ranges such as "2024 – present" need a wider column. */
.entries-wide li { grid-template-columns: 120px minmax(0, 1fr); }
.entries-wide .alumni-name { font-size: 18px; }
@media (max-width: 600px) {
  .side { gap: 12px 14px; }
  .portrait { width: 64px; height: 64px; }
  .name { font-size: 22px; }
  .titles { font-size: 14px; }
  .nav ul { gap: 0 16px; font-size: 16px; }
  .nav a { min-height: 40px; }
  .side-links { display: none; }   /* shown in the footer instead */
}
@media (max-width: 600px) { .entries-wide li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
/* Entries without dates (e.g. the Contact page). */
.entries-plain li { grid-template-columns: minmax(0, 1fr); }

/* Selected papers on the Research page: no bullets; title, then venue and year. */
.papers { list-style: none; margin: 4px 0 0; padding: 0; border-top: 1px solid var(--line); max-width: 780px; }
.papers li { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.papers li > a, .papers .paper-title { font-size: 18px; line-height: 1.45; font-weight: 600; text-decoration: none; }
.papers li > a:hover { text-decoration: underline; }
.papers .meta { font-family: var(--sans); font-size: 15px; color: var(--muted); }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { border: 1px solid var(--line); border-radius: 4px; padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.card h3, .feature h3 { margin: 0; font-size: 21px; line-height: 1.3; }
.card p { font-size: 17px; line-height: 1.55; }
.feature { padding: 8px 0 20px; border-bottom: 1px solid var(--line); }
.feature > div:last-child { display: flex; flex-direction: column; gap: 8px; }
.feature h3 { font-size: 24px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 4px; background: var(--navy); color: #FFFFFF; text-decoration: none; font: 600 16px var(--sans); }
.btn:hover { color: #FFFFFF; background: var(--navy-2); }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; }
table.data th { text-align: left; padding: 10px 16px 10px 0; border-bottom: 2px solid var(--ink); font: 700 15px var(--sans); }
table.data td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 17px; line-height: 1.5; }
table.data td:first-child { color: var(--muted); white-space: nowrap; }
.big-link { font-size: 36px; font-weight: 700; line-height: 1.2; }
.links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-family: var(--sans); font-size: 17px; }

@media (max-width: 960px) {
  .intro h1 { font-size: 32px; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .big-link { font-size: 26px; }
}

/* Links: icons, buttons and arrows instead of plain underlined text. */
.ico { display: inline-block; vertical-align: middle; }
.contact-email { margin: 0; }
.contact-email a { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 600; line-height: 1.2; text-decoration: none; color: var(--link); }
.contact-email a:hover span { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.contact-email .ico { width: 22px; height: 22px; color: var(--gold); }
.page-head + .sec-first { padding-top: 0; }
.link-buttons { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.link-button { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 4px;
  font: 600 16px var(--sans); color: var(--navy); text-decoration: none; background: #FFFFFF; }
.link-button:hover { border-color: var(--navy); background: #F4F6F9; color: var(--navy); }
.link-button .ico:first-child { color: var(--link); }
.link-button .ico:last-child { width: 14px; height: 14px; color: var(--muted); }
.sec-link, .arrow-link { font-family: var(--sans); font-weight: 600; text-decoration: none; }
.sec-link::after, .arrow-link::after { content: "\00a0\2192"; }
.sec-link:hover, .arrow-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 18px; }
.foot-links { display: flex; list-style: none; margin: 0 0 14px; padding: 0; flex-wrap: wrap; gap: 10px 20px; }
.foot-links a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; }
.foot-links .ico { color: var(--gold); }
@media (min-width: 601px) { .foot-links { display: none; } }
.search input::-webkit-search-decoration { -webkit-appearance: none; }
/* A list straight under a section heading uses the heading's rule; no second line. */
.sec-head + .news, .sec-head + .alumni, .sec-head + .papers { border-top: 0; }
.sec-head + .news li:first-child, .sec-head + .alumni li:first-child { padding-top: 4px; }
/* An email link inside a sentence: same font, link blue, semi-bold, underline on hover. */
.mail-link { font-weight: 600; text-decoration: none; }
.mail-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.nowrap { white-space: nowrap; }
