/* CLUE Research — Cumann Léinn, Úrnuachta agus Eolais */
:root {
  --ink: #1d2a2a;
  --muted: #5a6b69;
  --paper: #f7f5f0;
  --card: #ffffff;
  --line: #e2ddd2;
  --green: #0f5b4f;
  --green-dark: #0a4038;
  --gold: #b8913a;
  --err-bg: #fbeaea;
  --err-ink: #8a1f1f;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html:not([data-lang="en"]) [lang="en"]:not(html) { display: none !important; }
html[data-lang="en"] [lang="ga"]:not(html) { display: none !important; }

body {
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); background: var(--paper); line-height: 1.6; font-size: 16px;
}
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: normal; line-height: 1.25; }
a { color: var(--green); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* header */
.topbar { background: var(--green-dark); color: #d9e6e3; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: flex-end; gap: 18px; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: #d9e6e3; text-decoration: none; }
.topbar a:hover { color: #fff; }
.lang-toggle { background: none; border: 1px solid #7fa59d; color: #fff; border-radius: 3px;
  padding: 1px 10px; font: inherit; cursor: pointer; }
.lang-toggle:hover { background: rgba(255,255,255,.1); }
header.site { background: var(--card); border-bottom: 3px solid var(--gold); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { height: 52px; width: auto; }
.brand .name { font-family: Georgia, serif; font-size: 24px; letter-spacing: .04em; color: var(--green-dark); }
.brand .sub { display: block; font-size: 12.5px; color: var(--muted); letter-spacing: .02em; }
nav.main a { margin-left: 22px; text-decoration: none; color: var(--ink); font-size: 15px; }
nav.main a:hover, nav.main a.on { color: var(--green); border-bottom: 2px solid var(--green); }

/* hero */
.hero { background: var(--green) url("/hero.jpg") center/cover no-repeat; color: #fff; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,64,56,.92) 0%, rgba(10,64,56,.75) 45%, rgba(10,64,56,.25) 100%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding-top: 64px; padding-bottom: 64px; align-items: center; }
.hero h1 { font-size: 40px; margin-bottom: 16px; }
.hero p.lead { font-size: 18px; color: #e3eeeb; max-width: 560px; }
.btn { display: inline-block; padding: 10px 20px; border-radius: 3px; text-decoration: none; font-size: 15px; margin-top: 22px; margin-right: 10px; }
.btn.primary { background: var(--gold); color: #1d1a10; }
.btn.ghost { border: 1px solid #cfe0dc; color: #fff; }

/* login card */
.login { background: var(--card); color: var(--ink); border-radius: 6px; padding: 26px 26px 20px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.login h2 { font-size: 22px; color: var(--green-dark); margin-bottom: 4px; }
.login p.hint { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.login label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
.login input[type=text], .login input[type=password] { width: 100%; padding: 9px 10px; border: 1px solid #c9c3b6; border-radius: 3px; font-size: 15px; }
.login input:focus { outline: 2px solid var(--green); border-color: var(--green); }
.login button { width: 100%; margin-top: 16px; padding: 10px; background: var(--green); color: #fff; border: 0; border-radius: 3px; font-size: 15px; cursor: pointer; }
.login button:hover { background: var(--green-dark); }
.login .links { display: flex; justify-content: space-between; font-size: 13px; margin-top: 12px; }
.login .note { font-size: 12px; color: var(--muted); margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.err { background: var(--err-bg); color: var(--err-ink); border: 1px solid #e8c4c4; border-radius: 3px; padding: 8px 10px; font-size: 14px; margin-bottom: 6px; }

/* sections */
section { padding: 56px 0; }
section.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section h2 { font-size: 28px; color: var(--green-dark); margin-bottom: 26px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: 4px; padding: 20px; }
section.alt .card { background: var(--paper); }
.card h3 { font-size: 18px; margin-bottom: 8px; color: var(--green-dark); }
.card p { font-size: 14.5px; color: var(--muted); }
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news article { border-left: 3px solid var(--gold); padding-left: 16px; }
.news time { font-size: 13px; color: var(--muted); }
.news h3 { font-size: 18px; margin: 4px 0 6px; }
.news p { font-size: 14.5px; color: var(--muted); }
.members { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.member { border: 1px solid var(--line); background: var(--card); border-radius: 4px; padding: 16px 18px; }
.member strong { display: block; font-family: Georgia, serif; font-size: 19px; letter-spacing: .06em; color: var(--green-dark); }
.member span { font-size: 14px; color: var(--muted); }
.member p { font-size: 14.5px; color: var(--muted); margin-top: 8px; }

/* inner pages */
.pagehead { background: var(--green); color: #fff; padding: 36px 0; }
.pagehead h1 { font-size: 32px; }
.prose { max-width: 760px; }
.prose p { margin-bottom: 16px; }
.prose h2 { font-size: 22px; margin: 28px 0 12px; }
.prose ul { margin: 0 0 16px 22px; }
.contacts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 760px; }

/* footer */
footer.site { background: var(--green-dark); color: #b9cfca; font-size: 13.5px; padding: 28px 0; margin-top: 0; }
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer.site a { color: #d9e6e3; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .news, .members, .contacts { grid-template-columns: 1fr; }
  nav.main a { margin-left: 0; margin-right: 16px; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
}
