/* PASTIC Koha Cloud & Consortium portal */
:root {
  --green: #073763; --green-2: #116aa6; --brass: #c96713; --brass-soft: #fdf0e1;
  --ink: #152235; --muted: #5f7085; --line: #dce8f1; --paper: #f4f8fb; --card: #ffffff;
  --card-rule: #cfe0ee; --card-red: #f28c28; --focus: #f28c28;
  --radius: 6px; --wrap: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --green: #8cc8f0; --green-2: #6fb6e6; --brass: #f5a95a; --brass-soft: #3a2a18;
    --ink: #e4ecf4; --muted: #a2b3c6; --line: #263a50; --paper: #0d1826; --card: #132235;
    --card-rule: #23405c; --card-red: #f5a95a;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 "Public Sans", "Segoe UI", system-ui, sans-serif; }
img { max-width: 100%; }
a { color: var(--green-2); text-underline-offset: 3px; }
a:hover { color: var(--brass); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: "Literata", Georgia, serif; color: var(--green); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; max-width: 72ch; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 10; }

/* header */
.top { background: #073763; color: #e7f3fb; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .top { background: #06243f; } }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand b { font-family: "Literata", Georgia, serif; font-size: 1.15rem; font-weight: 600; display: block; line-height: 1.15; }
.brand small { font-size: .78rem; opacity: .8; display: block; }
.mark { width: 38px; height: 38px; border: 2px solid #f28c28; border-radius: 4px; display: grid; place-items: center; font: 600 .95rem "Literata", Georgia, serif; color: #f28c28; flex: none; }
nav.main ul { list-style: none; display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; }
nav.main a { color: #dfeae5; text-decoration: none; padding: 8px 10px; border-radius: 4px; font-size: .95rem; display: block; }
nav.main a:hover { background: rgba(255,255,255,.08); color: #fff; }
nav.main a[aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 #f28c28; border-radius: 0; }
.menu-btn { display: none; }
@media (max-width: 860px) {
  .menu-btn { display: block; background: none; border: 1px solid rgba(255,255,255,.4); color: #fff; border-radius: 4px; padding: 6px 12px; font: inherit; cursor: pointer; }
  nav.main { width: 100%; display: none; padding-bottom: 12px; }
  nav.main.open { display: block; }
  nav.main ul { flex-direction: column; }
}

/* page head */
.pagehead { padding: 48px 0 28px; border-bottom: 1px solid var(--line); }
.pagehead p { font-size: 1.1rem; color: var(--muted); }
main section { padding: 40px 0; }
main section + section { border-top: 1px solid var(--line); }

/* catalogue card hero (the one signature element) */
.hero { padding: 56px 0 48px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 32px; } }
.hero h1 { margin-bottom: .4em; }
.hero .lead { font-size: 1.15rem; color: var(--muted); }
.catcard { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 3px; padding: 22px 24px 46px;
  box-shadow: 6px 6px 0 -1px var(--card), 6px 6px 0 0 var(--line); font-family: "Literata", Georgia, serif; min-width: 0; }
.catcard .head { font-weight: 600; color: var(--green); padding: 0 0 8px 72px; border-bottom: 1px solid var(--card-red); line-height: 1.35; }
.catcard .body { display: grid; grid-template-columns: 64px 1fr; gap: 8px; line-height: 28px;
  background: repeating-linear-gradient(to bottom, transparent 0 27px, var(--card-rule) 27px 28px); }
.catcard .call { font-size: .82rem; color: var(--muted); }
.catcard .entry p { margin: 0; max-width: none; }
.catcard .indent { text-indent: 1.6em; }
.catcard .tracing { color: var(--muted); font-size: .9rem; }
.catcard .hole { position: absolute; left: 50%; bottom: 14px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); }
@media (max-width: 520px) { .catcard { padding: 18px 16px 42px; } .catcard .head { padding-left: 0; } .catcard .body { grid-template-columns: 48px 1fr; } }
.hero .wrap > * { min-width: 0; }
body { overflow-wrap: break-word; }

/* buttons */
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn { display: inline-block; padding: 11px 18px; border-radius: var(--radius); text-decoration: none; font-weight: 600; font-size: .98rem; border: 2px solid var(--green); }
.btn-p { background: #f28c28; border-color: #f28c28; color: #fff; } .btn-p:hover { background: #d9731a; border-color: #d9731a; color: #fff; }
.btn-s { color: var(--green); background: transparent; } .btn-s:hover { background: var(--brass-soft); color: var(--green); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-p { color: #fff; } }

/* grids */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.tile h3 { margin-bottom: .35em; }
.tile p { margin-bottom: .6em; color: var(--muted); font-size: .97rem; }
.tile ul { margin: .4em 0 .8em; padding-left: 1.1em; color: var(--muted); font-size: .97rem; }
.facts { display: flex; flex-wrap: wrap; gap: 28px 48px; margin: 8px 0 0; padding: 0; list-style: none; }
.facts li b { display: block; font: 600 2rem/1.1 "Literata", Georgia, serif; color: var(--brass); }
.facts li span { color: var(--muted); font-size: .95rem; }

/* steps (a real sequence) */
ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
ol.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 18px; position: relative; }
ol.steps li::before { content: counter(s); font: 600 1.6rem/1 "Literata", Georgia, serif; color: var(--brass); display: block; margin-bottom: 8px; }
ol.steps li b { display: block; margin-bottom: 4px; }
ol.steps li span { color: var(--muted); font-size: .96rem; }

.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { padding: 8px 0 8px 30px; position: relative; border-bottom: 1px solid var(--line); max-width: 72ch; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 12px; height: 7px; border-left: 2px solid var(--brass); border-bottom: 2px solid var(--brass); transform: rotate(-45deg); }
.note { background: var(--brass-soft); border-left: 4px solid var(--brass); padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; max-width: 78ch; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; } @media (max-width: 800px) { .two { grid-template-columns: 1fr; } }

/* documents */
.docs { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.docs a { display: flex; justify-content: space-between; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--ink); }
.docs a:hover { border-color: var(--brass); color: var(--ink); }
.docs small { color: var(--muted); display: block; font-size: .85rem; }
.docs .ft { font-size: .78rem; font-weight: 700; color: var(--brass); border: 1px solid var(--brass); border-radius: 3px; padding: 1px 6px; flex: none; }

/* faq */
details.q { border-bottom: 1px solid var(--line); max-width: 860px; }
details.q summary { cursor: pointer; padding: 16px 32px 16px 0; font: 600 1.08rem "Literata", Georgia, serif; color: var(--green); list-style: none; position: relative; }
details.q summary::-webkit-details-marker { display: none; }
details.q summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.4rem; color: var(--brass); }
details.q[open] summary::after { content: "\2212"; }
details.q div { padding: 0 0 16px; color: var(--ink); }

/* members */
.filter { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 0 18px; }
.filter input { flex: 1 1 280px; padding: 11px 14px; font: inherit; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink); }
.filter label { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: .95rem; }
.count { color: var(--muted); font-size: .95rem; }
table.members { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.members th { text-align: left; font-size: .85rem; color: var(--muted); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line); }
table.members td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.members td.n { color: var(--muted); width: 3.5em; font-variant-numeric: tabular-nums; }
table.members tr:last-child td { border-bottom: none; }
.tag { font-size: .78rem; color: var(--green-2); border: 1px solid var(--line); border-radius: 10px; padding: 1px 8px; white-space: nowrap; }
@media (max-width: 600px) { table.members td.t, table.members th.t { display: none; } }

/* contact */
.addr p { margin: 0 0 .3em; }
form.msg { display: grid; gap: 12px; max-width: 560px; }
form.msg label { display: grid; gap: 4px; font-size: .95rem; color: var(--muted); }
form.msg input, form.msg select, form.msg textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink); }
form.msg button { justify-self: start; cursor: pointer; font: inherit; }

/* footer */
footer { margin-top: 48px; background: #062b4f; color: #b8cde2; font-size: .93rem; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) footer { background: #051d35; } }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding: 36px 16px; }
@media (max-width: 760px) { footer .wrap { grid-template-columns: 1fr; } }
footer h3 { color: #fff; font-size: 1rem; }
footer a { color: #f8b26a; } footer a:hover { color: #fff; }
footer ul { list-style: none; padding: 0; margin: 0; } footer li { margin: 4px 0; }
footer .base { border-top: 1px solid rgba(255,255,255,.12); padding: 14px 16px; font-size: .85rem; color: #8fb0cf; max-width: var(--wrap); margin: 0 auto; }
@media print { .top nav, .menu-btn, footer { display: none; } body { background: #fff; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
.filter label { white-space: nowrap; }
table.members td.t, table.members th.t { white-space: nowrap; width: 1%; }
.tag.own { color: var(--muted); }
.logo { width: 58px; height: auto; background: #fff; border-radius: 6px; padding: 3px; flex: none; }
.flogo { width: 72px; height: auto; background: #fff; border-radius: 8px; padding: 4px; display: block; margin-bottom: 14px; }
@media (min-width: 861px) { .top .wrap { flex-wrap: nowrap; } nav.main a { padding: 8px 8px; font-size: .93rem; } .brand small { max-width: 200px; } }

/* site banner (PASTIC National Science Reference Library) */
.sitebanner { background: #0c4f87; line-height: 0; }
.sitebanner img { width: 100%; height: auto; max-height: 260px; object-fit: cover; object-position: center; }
/* PASTIC national portal links (footer) */
footer .portal { background: #04182c; border-top: 1px solid rgba(255,255,255,.08); }
footer .portal .wrap { display: block; padding: 34px 16px 28px; grid-template-columns: none; }
footer .ph { color: #8fc1ea; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 2px; }
footer .pp { color: #8fb0cf; font-size: .85rem; margin: 0 0 22px; } footer .pp a { color: #fff; }
footer .pcols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 32px; }
@media (max-width: 860px) { footer .pcols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { footer .pcols { grid-template-columns: 1fr; } }
footer .pcols h4 { color: #b9d3ea; font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; margin: 0 0 10px; font-weight: 600; }
footer .pcols li { margin: 0 0 7px; line-height: 1.35; }
footer .pcols a { color: #e7f0f8; font-size: .86rem; font-weight: 600; } footer .pcols a:hover { color: #f8b26a; }
footer .pcols a, footer .pp a { text-decoration: none; } footer .pcols a:hover { text-decoration: underline; }
/* one footer: identity row + portal links + copyright, one background */
footer { background: #04182c; }
footer .ftop { border-bottom: 1px solid rgba(255,255,255,.1); }
footer .ftop .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px 32px; flex-wrap: wrap; padding: 26px 16px; grid-template-columns: none; }
footer .fid { display: flex; gap: 16px; align-items: center; }
footer .fid .flogo { width: 56px; margin: 0; flex: none; }
footer .fid h3 { margin: 0 0 2px; font-size: 1rem; }
footer .fid p { margin: 0; color: #9fbad3; font-size: .85rem; max-width: 62ch; }
footer .fquick { display: flex; flex-wrap: wrap; gap: 6px 20px; }
footer .fquick li { margin: 0; }
footer .fquick a { color: #f8b26a; font-weight: 600; font-size: .88rem; text-decoration: none; } footer .fquick a:hover { text-decoration: underline; }
footer .portal { background: transparent; border-top: 0; }
footer .base { border-top: 1px solid rgba(255,255,255,.1); margin: 0 auto; }
.nw { white-space: nowrap; }
footer .flogo-r { width: 96px; height: auto; background: #fff; border-radius: 10px; padding: 5px; flex: none; }
@media (max-width: 600px) { footer .flogo-r { width: 72px; } }
.support { margin-top: 28px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid #f28c28; border-radius: var(--radius); padding: 18px 20px; max-width: 460px; }
.support h3 { margin-bottom: 2px; } .support .count { margin-bottom: .8em; } .support p { margin: 0 0 .6em; }
.addr .support:first-of-type { margin-top: 8px; } .addr .support + .support { margin-top: 18px; }

/* ---- design review 2026-10-10: fewer template signals ---- */
/* card rows become plain ruled lists */
.grid .tile { background: none; border: 0; border-top: 2px solid var(--line); border-radius: 0; box-shadow: none; padding: 14px 0 0; }
.list4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 56px; }
@media (max-width: 760px) { .list4 { grid-template-columns: 1fr; } }
.list4 > div { border-top: 2px solid var(--line); padding: 16px 0 6px; }
.list4 p { color: var(--muted); max-width: 54ch; }
.white { background: #fff; }
a.plain { font-weight: 600; margin-left: 14px; white-space: nowrap; }
/* catalogue search in the opening section */
.find { background: var(--card); border: 1px solid var(--line); border-top: 4px solid #f28c28; border-radius: 4px; padding: 24px 26px 20px; }
.find h2 { font-size: 1.4rem; margin-bottom: .6em; }
.find > label { display: block; font-size: .92rem; color: var(--muted); margin-bottom: 6px; }
.findrow { display: flex; gap: 8px; }
.findrow input { flex: 1; min-width: 0; font: inherit; font-size: 1.05rem; padding: 11px 14px; border: 1px solid #b9cde0; border-radius: 4px; background: #fff; color: var(--ink); }
.findrow input:focus { border-color: var(--green-2); outline: 2px solid #f28c28; outline-offset: 1px; }
.find fieldset { border: 0; padding: 0; margin: 14px 0 0; }
.find legend { font-size: .85rem; color: var(--muted); padding: 0; margin-bottom: 4px; }
.find fieldset label { display: flex; gap: 8px; align-items: center; font-size: .95rem; padding: 3px 0; }
/* a real sequence, as a plain numbered list */
ol.plainsteps { padding-left: 1.4em; margin: 0 0 1em; } ol.plainsteps li { padding: 4px 0 4px 4px; } ol.plainsteps li::marker { color: #c96713; font-weight: 700; }
ul.checks.cols2 { columns: 2; column-gap: 48px; } ul.checks.cols2 li { break-inside: avoid; }
@media (max-width: 700px) { ul.checks.cols2 { columns: 1; } }
.tag.off { color: #9a3b12; background: #fdf0e1; }
