/* Career & Research Hub: plain CSS, no build step. */
:root {
    --green: #006633;
    --green-600: #00552b;
    --green-50: #e9f5ee;
    --navy: #0b2a4a;
    --navy-700: #003366;
    --ink: #17202a;
    --muted: #5b6673;
    --line: #e3e8ee;
    --bg: #f6f8fa;
    --card: #ffffff;
    --amber: #b45309;
    --amber-50: #fff6e5;
    --red: #b42318;
    --radius: 14px;
    --shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04);
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(1.75rem, 4vw, 2.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); letter-spacing: -.01em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1rem; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .bar { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--navy); font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--green), var(--navy-700)); display: grid; place-items: center; color: #fff; font-size: .8rem; letter-spacing: .02em; }
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: .72rem; margin-top: -2px; }
.nav { margin-left: auto; display: flex; gap: .25rem; flex-wrap: wrap; }
.nav a { color: var(--ink); padding: .45rem .7rem; border-radius: 8px; font-weight: 500; font-size: .95rem; }
.nav a:hover, .nav a.active { background: var(--green-50); color: var(--green); text-decoration: none; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: .4rem .6rem; font: inherit; cursor: pointer; }

@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; padding: .5rem 16px 1rem; }
    .nav.open { display: flex; }
}

/* Hero */
.hero { background: linear-gradient(135deg, var(--green) 0%, var(--navy-700) 100%); color: #fff; padding: 56px 0 64px; }
.hero h1 { color: #fff; max-width: 760px; }
.hero p.lead { font-size: 1.15rem; max-width: 680px; opacity: .92; }
.hero .actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-stats { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 2rem; font-size: .9rem; opacity: .9; }
.hero-stats strong { display: block; font-size: 1.5rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .4rem; padding: .65rem 1.1rem; border-radius: 10px; font-weight: 600; font-size: .95rem; border: 1px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.2; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-600); }
.btn-light { background: #fff; color: var(--navy); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline { background: #fff; color: var(--green); border-color: var(--green); }
.btn-danger { background: #fff; color: var(--red); border-color: #f1c4c0; }
.btn-sm { padding: .4rem .75rem; font-size: .85rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Sections */
.section { padding: 48px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.section-head p { margin: 0; }
.page-head { background: #fff; border-bottom: 1px solid var(--line); padding: 32px 0 24px; }
.page-head p { color: var(--muted); max-width: 720px; margin: 0; }

/* Cards and grids */
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
@media (max-width: 400px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0; }
.card h3 { margin-bottom: .35rem; }
.card h3 a { color: var(--navy); }
.card .meta { font-size: .85rem; color: var(--muted); margin-bottom: .6rem; }
.card p { color: var(--muted); font-size: .95rem; }
.card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; font-size: .85rem; }

.tag { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--green-50); color: var(--green); }
.tag-new { background: #e0f2fe; color: #075985; }
.tag-warn { background: var(--amber-50); color: var(--amber); }
.tag-sponsored { background: #f3e8ff; color: #6b21a8; }
.tag-muted { background: #eef1f4; color: var(--muted); }
.tags { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: .6rem; }

/* Filters */
.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1rem 0 0; }
.chip { padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: .875rem; }
.chip:hover { text-decoration: none; border-color: var(--green); }
.chip.active { background: var(--green); border-color: var(--green); color: #fff; }
.search { display: flex; gap: .5rem; margin-top: 1rem; max-width: 560px; }
.search input { flex: 1; min-width: 0; }

/* Article */
.article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 40px); }
.prose { font-size: 1.02rem; }
.prose h2 { margin-top: 1.6em; font-size: 1.35rem; }
.prose h3 { margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .35rem; }
.prose code { background: #f1f4f7; padding: .1em .35em; border-radius: 5px; font-size: .9em; }
.prose pre { background: #0f1720; color: #e6edf3; padding: 1rem; border-radius: 10px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose blockquote { margin: 1em 0; padding: .6em 1em; border-left: 4px solid var(--green); background: var(--green-50); border-radius: 0 8px 8px 0; }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: .45rem .6rem; text-align: left; }

.layout-side { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .layout-side { grid-template-columns: 1fr; } }
.facts { list-style: none; padding: 0; margin: 0; }
.facts li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.facts li span:first-child { color: var(--muted); }
.facts li span:last-child { text-align: right; font-weight: 500; }

/* Forms */
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.field { margin-bottom: 1rem; }
.hint { font-size: .8rem; color: var(--muted); margin-top: .25rem; }
input[type=text], input[type=email], input[type=url], input[type=date], input[type=number], input[type=password], input[type=search], select, textarea {
    width: 100%; padding: .6rem .75rem; border: 1px solid #cfd6de; border-radius: 9px; font: inherit; font-size: .95rem; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(0,102,51,.25); border-color: var(--green); }
textarea { min-height: 110px; resize: vertical; }
textarea.markdown { min-height: 320px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .9rem; }
.check { display: flex; gap: .5rem; align-items: flex-start; font-weight: 400; }
.check input { margin-top: .3rem; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 640px) { .row-2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: .8rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-size: .95rem; }
.alert-ok { background: var(--green-50); color: var(--green-600); border: 1px solid #bfe3cd; }
.alert-err { background: #fdecea; color: var(--red); border: 1px solid #f5c2bd; }
.alert-err ul { margin: 0; padding-left: 1.2rem; }

/* Newsletter band */
.band { background: var(--navy); color: #fff; border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.band h2 { color: #fff; }
.band p { opacity: .85; }
.band label { color: #fff; }
.band .check { font-size: .85rem; opacity: .9; }
@media (max-width: 800px) { .band { grid-template-columns: 1fr; } }

/* Product */
.price { font-size: 1.4rem; font-weight: 800; color: var(--navy); }
.notice { background: var(--amber-50); border: 1px solid #f7d9a8; color: #7a4a06; padding: .8rem 1rem; border-radius: 10px; font-size: .92rem; }

/* Footer */
.site-footer { background: #fff; border-top: 1px solid var(--line); margin-top: 48px; padding: 32px 0; font-size: .9rem; color: var(--muted); }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.site-footer h4 { font-size: .9rem; margin-bottom: .5rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer a { color: var(--muted); }
@media (max-width: 700px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* Pagination (Laravel simple-default markup) */
nav[role=navigation] { margin-top: 1.5rem; }
nav[role=navigation] svg { width: 18px; height: 18px; }
.pagination { display: flex; gap: .35rem; list-style: none; padding: 0; flex-wrap: wrap; }
.pagination li a, .pagination li span { display: block; padding: .4rem .75rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: .875rem; }
.pagination li.active span { background: var(--green); color: #fff; border-color: var(--green); }
.pagination li.disabled span { color: #aab2bb; }

.empty { text-align: center; padding: 48px 16px; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }

/* Admin */
.admin-wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100vh; }
.admin-side { background: var(--navy); color: #fff; padding: 20px 14px; }
.admin-side a { display: block; color: #cfd8e3; padding: .5rem .7rem; border-radius: 8px; font-size: .92rem; }
.admin-side a:hover, .admin-side a.active { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.admin-side .brand { color: #fff; margin-bottom: 1.25rem; }
.admin-main { padding: 24px; min-width: 0; }
@media (max-width: 800px) { .admin-wrap { grid-template-columns: 1fr; } .admin-side { display: flex; flex-wrap: wrap; gap: .25rem; } .admin-side .brand { width: 100%; } }
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.table th, table.table td { padding: .65rem .8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.table th { background: #f8fafc; font-weight: 600; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stat strong { display: block; font-size: 1.6rem; color: var(--navy); }
.inline { display: inline; }
