/* Inner pages (all pages except home), Apple-style: large title on a light ground, section bar,
   readable text, cards in the sidebar. Markup comes from inner.php and the page templates.
   Dark theme: header.php inverts the page; brand-red pills are flipped back there. */
.lkc-inner { --ink: #1d1d1f; --muted: #6e6e73; --line: #d2d2d7; --soft: #f5f5f7; --navy: #202c45; --red: #e30613; --link: #0066cc; color: var(--ink); }
.lkc-inner, .lkc-inner * { box-sizing: border-box; }
.lki-wrap { max-width: 1170px; margin: 0 auto; padding: 0 15px; }
.lkc-inner p, .lkc-inner li, .lkc-inner td { text-align: left !important; } /* theme and old page text justify; ragged right reads better */

/* Section bar under the main menu */
.lki-local { position: sticky; top: 52px; z-index: 90; background: rgba(251,251,253,.86); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.08); }
.lki-local-row { display: flex; align-items: center; gap: 18px; min-height: 52px; }
.lki-local strong { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; color: var(--ink); }
.lki-local nav { flex: 1; min-width: 0; display: flex; gap: 4px 18px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.lki-local nav::-webkit-scrollbar { display: none; }
.lki-local nav > :first-child { margin-left: auto; } /* right-aligned, yet the start stays reachable when the links overflow */
.lki-local nav a { color: var(--ink); font-size: 13px; padding: 6px 0; opacity: .8; text-decoration: none; }
.lki-local nav a:hover { opacity: 1; color: var(--ink); }
.lki-local nav a[aria-current="page"] { opacity: 1; font-weight: 600; }

/* Title */
.lki-hero { padding-top: 56px; padding-bottom: 32px; }
.lki-crumbs { list-style: none !important; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); }
.lki-crumbs li + li::before { content: "\203A"; margin-right: 6px; opacity: .6; }
.lki-crumbs a { color: var(--muted); text-decoration: none; }
.lki-crumbs a:hover { color: var(--ink); }
.lkc-inner h1 { margin: 0; font-size: 56px; line-height: 1.06; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); text-wrap: balance; text-transform: none; }
.lki-hero p { margin: 12px 0 0; font-size: 21px; line-height: 1.4; color: var(--muted); max-width: 40ch; }
.lki-media { border-radius: 22px; overflow: hidden; aspect-ratio: 21 / 9; max-width: 100%; background: var(--soft); }
.lki-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Body: text and sidebar */
.lki-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding-top: 40px; padding-bottom: 72px; align-items: start; }
.lki-body--wide { grid-template-columns: minmax(0, 1fr); }
.lki-aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 120px; }
.lki-card { background: var(--soft); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.lki-card h3 { margin: 0; font-size: 17px; font-weight: 600; color: var(--ink); text-transform: none; letter-spacing: 0; }
.lki-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.lki-card a { color: var(--link); }
.lki-photo { padding: 0; overflow: hidden; }
.lki-photo img { width: 100%; height: auto; display: block; }
.lki-list { list-style: none !important; margin: 0; padding: 0; }
.lki-list a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink) !important; font-size: 14px; text-decoration: none; }
.lki-list li:last-child a { border-bottom: 0; }
.lki-list a::after { content: "\203A"; color: var(--muted); font-size: 16px; }
.lki-list a[aria-current="page"] { font-weight: 600; }
.lki-list a[aria-current="page"]::after { content: "\25CF"; color: var(--red); font-size: 8px; }
.lki-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lki-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 15px; border-radius: 980px; background: var(--red); color: #fff !important; font-size: 13px; font-weight: 600; white-space: nowrap; text-decoration: none !important; transition: transform .1s ease-out; }
.lki-pill:active { transform: scale(.97); }
.lki-pill--line { background: transparent; color: var(--link) !important; border: 1px solid currentColor; }

/* Text typed in the admin editor */
.lki-prose { font-size: 17px; line-height: 1.65; max-width: 68ch; color: var(--ink); text-align: left; min-width: 0; }
.lki-prose p { margin: 0 0 18px; font-size: inherit; line-height: inherit; }
.lki-prose p > strong:first-child { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.lki-prose h2, .lki-prose h3, .lki-prose h4 { color: var(--ink); font-weight: 600; letter-spacing: -0.01em; margin: 28px 0 10px; }
.lki-prose ol, .lki-prose ul { padding-left: 1.3em; margin: 0 0 18px; }
.lki-prose ol { list-style: decimal !important; }
.lki-prose ul { list-style: disc !important; }
.lki-prose li { margin-bottom: 6px; }
.lki-prose a { color: var(--link) !important; }
.lki-prose img { max-width: 100%; height: auto; border-radius: 14px; }
.lki-tbl { overflow-x: auto; margin: 8px 0 24px; border: 1px solid var(--line); border-radius: 14px; }
.lki-prose table { border-collapse: collapse; width: 100%; font-size: 15px; border: 0 !important; margin: 0; }
.lki-prose td, .lki-prose th { padding: 11px 16px !important; border: 0 !important; border-bottom: 1px solid var(--line) !important; text-align: left; vertical-align: top; }
.lki-prose td + td, .lki-prose th + th { border-left: 1px solid var(--line) !important; }
.lki-prose tr:first-child td, .lki-prose th { background: var(--soft); font-weight: 600; }
.lki-prose tr:last-child td { border-bottom: 0 !important; }

/* Photo gallery */
.lki-h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin: 36px 0 14px; color: var(--ink); text-transform: none; }
.lki-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 180px; gap: 10px; }
.lki-gallery a { display: block; border-radius: 16px; overflow: hidden; background: var(--soft); }
.lki-gallery a:first-child { grid-column: span 2; grid-row: span 2; }
.lki-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.lki-gallery a:hover img { transform: scale(1.04); }

/* Faculty */
.lki-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.lki-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 10px; background: #e8e8ed; }
.lki-seg a { font-size: 13px; font-weight: 500; color: var(--ink) !important; padding: 7px 12px; border-radius: 8px; text-decoration: none; }
.lki-seg a[aria-current="page"] { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); font-weight: 600; }
.lki-search { flex: 0 1 280px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 0 14px; font-size: 16px; }
.lki-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.lki-person { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: start; padding: 18px; border-radius: 18px; background: var(--soft); }
.lki-avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 600; font-size: 17px; }
.lki-person h3 { margin: 0; font-size: 16px; font-weight: 600; color: var(--ink); text-transform: none; letter-spacing: 0; }
.lki-person p { margin: 2px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.lki-badge { display: inline-block; margin-top: 8px; padding: 3px 9px; border-radius: 980px; background: #fff; font-size: 12px; font-weight: 600; color: var(--ink); }
.lki-empty { color: var(--muted); padding: 16px 0; }

/* News and activities */
.lki-news { display: flex; flex-direction: column; }
.lki-item { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); align-items: start; }
.lki-date { text-align: center; padding: 8px 0; border-radius: 14px; background: var(--soft); }
.lki-date b { display: block; font-size: 26px; line-height: 1; font-weight: 700; color: var(--ink); }
.lki-date span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.lki-item h3 { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; text-transform: none; }
.lki-item h3 a { color: var(--ink) !important; text-decoration: none; }
.lki-item p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.lki-item { scroll-margin-top: 80px; }
.lki-item .lki-prose { font-size: 15px; margin-top: 8px; max-width: none; }
.lki-item .lki-prose p { margin-bottom: 8px; }
.lki-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.lki-thumbs a { display: block; width: 120px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--soft); max-width: 100%; }
.lki-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Contact */
.lki-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 28px; }
.lki-tile { padding: 22px; border-radius: 18px; background: var(--soft); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lki-tile small { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lki-tile b { font-size: 17px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.lki-tile a { color: var(--link); }
.lki-contact { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.lki-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lki-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); margin: 0; }
.lki-form input, .lki-form textarea { font-size: 16px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; height: auto; box-shadow: none; }
.lki-form input:focus, .lki-form textarea:focus { border-color: var(--link); outline: none; box-shadow: 0 0 0 3px rgba(0,102,204,.18); }
.lki-form textarea { min-height: 130px; resize: vertical; }
.lki-form .lki-full { grid-column: 1 / -1; }
.lki-form button { justify-self: start; border: 0; border-radius: 980px; background: var(--red); color: #fff; font-size: 15px; font-weight: 600; padding: 12px 24px; cursor: pointer; }
.lki-map { border-radius: 18px; overflow: hidden; background: var(--soft); aspect-ratio: 4 / 3; max-width: 100%; }
.lki-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.lki-map-link { display: inline-block; margin-top: 10px; font-size: 14px; color: var(--link); }

/* Older templates that only get the new page top (News & Events, FEMIT, Feedback, Search) */
.lki-legacy { padding-top: 8px; }
.lki-legacy section:first-child, .lki-legacy > section { padding-top: 20px; }

/* Phones and tablets */
@media (max-width: 991px) {
  .lki-local-row { gap: 12px; }
  .lki-local strong { font-size: 16px; }
  .lki-local nav > :first-child { margin-left: 0; }
  .lki-local .lki-pill { display: none; }
  .lki-hero { padding-top: 32px; padding-bottom: 22px; }
  .lkc-inner h1 { font-size: 38px; }
  .lki-hero p { font-size: 17px; }
  .lki-media { aspect-ratio: 4 / 3; border-radius: 18px; }
  .lki-body { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 24px; padding-bottom: 48px; }
  .lki-aside { position: static; }
  .lki-prose { font-size: 16px; }
  .lki-gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; }
  .lki-tiles { grid-template-columns: 1fr; }
  .lki-item { grid-template-columns: 60px minmax(0, 1fr); gap: 14px; }
  .lki-date b { font-size: 21px; }
  .lki-thumbs a { width: calc(33% - 6px); }
  .lki-contact { grid-template-columns: minmax(0, 1fr); }
  .lki-form { grid-template-columns: 1fr; }
}
@media (max-width: 380px) { .lkc-inner h1 { font-size: 32px; } }
@media (prefers-reduced-motion: reduce) { .lki-gallery img, .lki-pill { transition: none; } }

/* Old page markup nests a Bootstrap .container inside another (Feedback form); keep it inside its parent */
.container .container { width: auto; max-width: 100%; }

/* FAQs (inner.php lkc_faqs), Apple-style grouped list: one rounded panel, hairline separators,
   a round chevron that turns when open, highlight on press, and a height animation (script in lkc_faq_band)
   that starts from the current height, so a second tap mid-way simply reverses it. */
.lki-faq { margin-top: 44px; max-width: 820px; }
.lki-faq-list { background: var(--soft, #f5f5f7); border-radius: 18px; overflow: hidden; }
.lki-faq-list details { position: relative; }
.lki-faq-list details + details::before { content: ""; position: absolute; top: 0; left: 22px; right: 22px; height: 1px; background: var(--line, #d2d2d7); }
.lki-faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-size: 17px; font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; color: var(--ink, #1d1d1f); -webkit-tap-highlight-color: transparent; transition: background-color .2s ease; }
.lki-faq-list summary::-webkit-details-marker { display: none; }
.lki-faq-list summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231d1d1f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px 8px no-repeat; transition: transform .35s cubic-bezier(.2,.8,.2,1), background-color .2s ease; }
.lki-faq-list summary:hover { background-color: rgba(0,0,0,.025); }
.lki-faq-list summary:hover::after { background-color: rgba(0,0,0,.1); }
.lki-faq-list summary:active { background-color: rgba(0,0,0,.05); transition: none; } /* feedback on press, not on release */
.lki-faq-list summary:focus-visible { outline: 2px solid var(--link, #0066cc); outline-offset: -2px; border-radius: 18px; }
.lki-faq-list:not(.lki-js) details[open] summary::after, .lki-faq-list.lki-js details.is-open summary::after { transform: rotate(180deg); }
.lki-faq-a { padding: 0 22px 22px; color: var(--muted, #6e6e73); font-size: 16px; line-height: 1.65; max-width: 68ch; }
.lki-faq-a p { margin: 0; text-align: left !important; }
.lki-faq-only { padding-bottom: 56px; }
.lki-faq-only:empty { display: none; }
@media (max-width: 600px) {
  .lki-faq-list summary { padding: 16px 18px; font-size: 16px; }
  .lki-faq-list details + details::before { left: 18px; right: 18px; }
  .lki-faq-a { padding: 0 18px 18px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .lki-faq-list summary, .lki-faq-list summary::after { transition: none; } }

/* FAQ band above the footer (inner.php lkc_faq_band): title on the left, questions on the right */
.lki-faq-band { background: #fff; padding: 72px 0; border-top: 1px solid rgba(0,0,0,.06); } /* white, so it stands apart from the grey footer */
.lki-faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; align-items: start; }
.lki-faq-intro { position: sticky; top: 120px; }
.lki-eyebrow { display: block; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.lki-faq-band .lki-h2 { margin: 0 0 12px; font-size: 34px; line-height: 1.15; }
.lki-faq-intro p { margin: 0; color: var(--muted); font-size: 15px; }
.lki-faq-intro a { color: var(--link); }
.lki-faq-band .lki-faq { margin-top: 0; max-width: none; }
@media (max-width: 991px) {
  .lki-faq-band { padding: 48px 0; }
  .lki-faq-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .lki-faq-intro { position: static; }
  .lki-faq-band .lki-h2 { font-size: 28px; }
}
html.lkc-dark .lki-faq-band { background: transparent; } /* dark theme: let the page gradient show, like the other sections */
