/* ILS JOURNAL PORTAL - WHITE HEADER / SYMMETRIC LAYOUT
   OJS 3.5.0.5 - replace resources/ils-portal.css
   Scoped to site homepage, leaving individual journal pages unchanged.
   2026-11-08
*/
:root { --ils-navy:#063b59; --ils-blue:#075477; --ils-teal:#078da3; --ils-gold:#d6a529; --ils-line:#d8e5eb; --ils-bg:#f2f6f9; }
body:has(> .ils-portal), body:has(.ils-portal) { background:var(--ils-bg); margin:0; color:#344455; font-family:Arial,Helvetica,sans-serif; }
body:has(.ils-portal) *, body:has(.ils-portal) *::before, body:has(.ils-portal) *::after { box-sizing:border-box; }
body:has(.ils-portal) .ils-shell { width:min(1120px, calc(100% - 40px)); margin-inline:auto; }

/* HOME HEADER: supported variants: site-specific header or Classic header */
body:has(.ils-portal) > header,
body:has(.ils-portal) > header.ils-site-header,
body:has(.ils-portal) > header .header { background:#fff !important; color:var(--ils-navy) !important; border:0; box-shadow:none; }
body:has(.ils-portal) > header { border-bottom:3px solid var(--ils-gold) !important; }
body:has(.ils-portal) .ils-site-topbar { background:#fff !important; border-bottom:1px solid #edf1f4; color:#5d7181 !important; }
body:has(.ils-portal) .ils-site-topbar-inner { min-height:28px; padding-block:5px; display:flex; align-items:center; justify-content:space-between; font-size:10px; letter-spacing:1.2px; }
body:has(.ils-portal) .ils-site-usernav a { color:var(--ils-blue) !important; }
body:has(.ils-portal) .ils-site-brandbar { background:#fff !important; }
body:has(.ils-portal) .ils-brand-row { min-height:90px; padding-block:12px; display:flex; align-items:center; }
body:has(.ils-portal) a.ils-site-brand { display:flex; align-items:center; gap:15px; color:var(--ils-navy) !important; text-decoration:none; min-width:0; }
body:has(.ils-portal) img.ils-site-brand-logo { flex:none; width:76px !important; height:68px !important; max-width:76px; object-fit:contain; }
body:has(.ils-portal) .ils-site-brand-text { display:flex; flex-direction:column; justify-content:center; gap:5px; min-width:0; }
body:has(.ils-portal) .ils-site-brand-text strong { color:var(--ils-navy) !important; font-size:clamp(17px,2.25vw,25px) !important; font-family:Georgia,'Times New Roman',serif; font-weight:700; line-height:1.25; }
body:has(.ils-portal) .ils-site-brand-text small { color:#587082 !important; font-size:11px !important; letter-spacing:.3px; }
body:has(.ils-portal) .ils-site-navline { display:none !important; }

/* Fallback to Classic header, when site header override is not yet active.
   Keeps site logo (configured in OJS) and adds portal title to the right. */
body:has(.ils-portal) > header .header.container-fluid { padding:0 20px !important; }
body:has(.ils-portal) > header .upper-header.row { width:min(1120px,100%); margin:0 auto !important; min-height:100px; display:flex !important; flex-wrap:wrap; align-items:center; justify-content:space-between; }
body:has(.ils-portal) > header h1.logo-wrapper { flex:1 1 650px; max-width:none; width:auto; min-width:0; margin:0 !important; padding:12px 0 !important; }
body:has(.ils-portal) > header a.home-link { display:inline-flex !important; align-items:center !important; gap:17px; text-decoration:none !important; color:var(--ils-navy) !important; min-width:0; }
body:has(.ils-portal) > header img.journal-logo { display:block; width:auto !important; max-width:105px !important; height:auto !important; max-height:80px !important; object-fit:contain !important; }
body:has(.ils-portal) > header a.home-link:has(img.journal-logo)::after { content:'Rumah Jurnal CV. ILS NUSANTARA'; display:block; font:700 clamp(18px,2.3vw,25px)/1.25 Georgia,'Times New Roman',serif; color:var(--ils-navy); max-width:none; white-space:nowrap; }
body:has(.ils-portal) > header .journal-logo-text { font:700 clamp(17px,2.3vw,25px)/1.25 Georgia,serif !important; color:var(--ils-navy) !important; }
body:has(.ils-portal) > header #user-nav-wraper { flex:0 1 auto; width:auto; max-width:100%; padding:0; }
body:has(.ils-portal) > header #navigationUser { display:flex; justify-content:flex-end; margin:0; }
body:has(.ils-portal) > header #navigationUser a { color:var(--ils-blue) !important; }
body:has(.ils-portal) > header .lower-header { background:#fff !important; border-color:#e8eef2; }

/* HERO */
.ils-portal { width:100%; padding:0 0 27px; font-size:13px; line-height:1.65; color:#344455; }
.ils-portal .ils-hero { background:linear-gradient(115deg,#063b59 0%,#075477 70%,#078da3 100%); border-bottom:3px solid var(--ils-gold); color:#fff; }
.ils-portal .ils-hero-inner { padding:35px 0 43px !important; }
.ils-portal .ils-eyebrow { color:#f4d17c; font-size:10px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; }
.ils-portal .ils-hero h2 { color:#fff !important; font:700 clamp(23px,3vw,34px)/1.2 Georgia,'Times New Roman',serif !important; margin:9px 0 10px !important; }
.ils-portal .ils-hero p { color:#e3f0f5 !important; max-width:780px; font-size:13px !important; line-height:1.75; margin:0 0 19px; }
.ils-portal .ils-search { display:flex; align-items:stretch; gap:5px; width:100%; max-width:715px; background:#fff; padding:5px; border-radius:7px; box-shadow:0 5px 16px rgba(3,20,36,.17); }
.ils-portal .ils-search input { flex:1 1 auto; min-width:0; min-height:38px; border:0 !important; outline:0; box-shadow:none !important; padding:9px 12px; margin:0; font:13px Arial,Helvetica,sans-serif; color:#293e4b; background:#fff; }
.ils-portal .ils-search button { flex:none; min-height:38px; border:0; border-radius:5px; background:var(--ils-gold); color:#163747; font-size:12px; font-weight:700; padding:9px 17px; cursor:pointer; }
.ils-portal .ils-search button:hover { background:#e9bc4b; }

/* METRICS */
.ils-portal .ils-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; margin:-17px 0 19px !important; position:relative; }
.ils-portal .ils-metric { min-width:0; min-height:75px; display:flex; flex-wrap:wrap; align-items:center; justify-content:center; column-gap:9px; row-gap:3px; padding:11px 14px; border:1px solid var(--ils-line); border-radius:7px; background:#fff; box-shadow:0 4px 12px rgba(4,42,64,.06); text-align:center; }
.ils-portal .ils-metric-number { color:var(--ils-blue); font-size:25px; font-weight:800; line-height:1; }
.ils-portal .ils-metric-symbol { color:var(--ils-teal); font-size:22px; line-height:1; }
.ils-portal .ils-metric span:last-child { color:#546b7a; font-size:12px; font-weight:700; }

/* PANELS + GRID */
.ils-portal .ils-panel { background:#fff; border:1px solid var(--ils-line); border-radius:8px; padding:20px; margin:0 0 18px; box-shadow:0 3px 14px rgba(4,42,64,.045); }
.ils-portal .ils-section-title { display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:wrap; margin:0 0 17px; }
.ils-portal .ils-kicker { display:block; font-size:10px; letter-spacing:1.5px; font-weight:700; color:var(--ils-teal); }
.ils-portal .ils-panel h2 { color:var(--ils-navy) !important; font:700 22px/1.28 Georgia,'Times New Roman',serif !important; margin:5px 0 !important; }
.ils-portal .ils-filter { display:block; max-width:100%; }
.ils-portal .ils-filter input { width:265px; max-width:100%; min-height:38px; border:1px solid #d4e1e7; border-radius:6px; font-size:12px; padding:8px 12px; background:#fff; color:#3b5362; }
.ils-portal .ils-grid { display:grid !important; grid-template-columns:repeat(3,minmax(0,1fr)) !important; gap:16px !important; align-items:stretch; }
.ils-portal .ils-journal { display:flex; flex-direction:column; min-width:0; width:100%; height:100%; overflow:hidden; border:1px solid #dbe6ec; border-radius:7px; background:#fff; transition:box-shadow .15s,transform .15s; }
.ils-portal .ils-journal:hover { transform:translateY(-2px); box-shadow:0 8px 20px rgba(1,42,64,.1); }
.ils-portal .ils-cover { width:100%; flex:none; height:186px !important; min-height:186px !important; display:flex; align-items:center; justify-content:center; background:#eff5f8; padding:12px; text-decoration:none; }
.ils-portal .ils-cover img { display:block; height:160px !important; max-height:160px !important; width:100% !important; max-width:100% !important; object-fit:contain !important; margin:0 auto; box-shadow:none; }
.ils-portal .ils-cover-placeholder { height:160px; width:112px; display:flex; align-items:center; justify-content:center; background:var(--ils-blue); color:#fff; font-size:12px; text-align:center; }
.ils-portal .ils-journal-content { flex:1; display:flex; flex-direction:column; min-width:0; padding:13px 14px 14px; }
.ils-portal .ils-journal h3 { color:var(--ils-navy); font:700 14px/1.4 Arial,Helvetica,sans-serif !important; min-height:3.92em; margin:0 0 11px !important; overflow-wrap:anywhere; }
.ils-portal .ils-journal h3 a { color:var(--ils-navy); text-decoration:none; }
.ils-portal .ils-journal h3 a:hover { color:var(--ils-teal); }
.ils-portal .ils-journal-links { display:flex; align-items:center; flex-wrap:wrap; gap:6px 11px; border-top:1px solid #e5edf2; padding-top:10px; margin-top:auto; min-height:33px; }
.ils-portal .ils-journal-links a { color:var(--ils-blue); text-decoration:none; font-size:11px; font-weight:700; }
.ils-portal .ils-journal-links a:hover { text-decoration:underline; }
.ils-portal .ils-empty { padding:16px; text-align:center; }
.ils-portal .ils-visually-hidden { position:absolute !important; width:1px !important; height:1px !important; padding:0 !important; overflow:hidden !important; clip:rect(0,0,0,0) !important; white-space:nowrap; }
.ils-portal .ils-about p { font-size:13px !important; line-height:1.8; color:#475d6b; text-align:justify; }
.ils-portal .ils-contact { padding-top:11px; border-top:1px solid #e5edf2; overflow-wrap:anywhere; }
.ils-portal .ils-contact a { color:var(--ils-blue); }

/* FOOTER: ALL TEXT AND LINKS WHITE */
body:has(.ils-portal) footer.site-footer { background:var(--ils-navy) !important; color:#fff !important; border-top:3px solid var(--ils-gold); margin:0; padding:25px 0 18px; }
body:has(.ils-portal) footer.site-footer .container-footer { width:min(1120px,calc(100% - 40px)); max-width:1120px; margin:0 auto; padding:0 !important; }
body:has(.ils-portal) footer.site-footer .additional-footer-info { width:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:12px; }
body:has(.ils-portal) footer.site-footer .user-page-footer { width:100%; max-width:850px; margin:0 auto; text-align:center !important; }
body:has(.ils-portal) footer.site-footer .user-page-footer p { text-align:center !important; color:#fff !important; font-size:12px !important; line-height:1.65 !important; margin:0 0 6px !important; }
body:has(.ils-portal) footer.site-footer .user-page-footer :is(p,span,strong,b,em,a,div) { color:#fff !important; }
body:has(.ils-portal) footer.site-footer a { color:#fff !important; text-decoration:none; }
body:has(.ils-portal) footer.site-footer a:hover { color:#f5ce72 !important; text-decoration:underline; }
body:has(.ils-portal) footer.site-footer .pkpbrand-wrapper { display:flex; justify-content:center; align-items:center; padding:8px 0 0; }
body:has(.ils-portal) footer.site-footer .footer-brand-image { display:block; width:auto; max-width:125px; max-height:36px; object-fit:contain; }

@media (min-width:601px) and (max-width:900px) { .ils-portal .ils-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; } }
@media (max-width:600px) {
  body:has(.ils-portal) .ils-shell { width:calc(100% - 24px); }
  body:has(.ils-portal) .ils-brand-row { min-height:74px; padding-block:10px; }
  body:has(.ils-portal) img.ils-site-brand-logo { width:56px !important; height:52px !important; }
  body:has(.ils-portal) a.ils-site-brand { gap:10px; }
  body:has(.ils-portal) .ils-site-brand-text strong { font-size:16px !important; }
  body:has(.ils-portal) .ils-site-brand-text small { font-size:10px !important; }
  body:has(.ils-portal) > header .upper-header.row { min-height:78px; }
  body:has(.ils-portal) > header img.journal-logo { max-width:65px !important; max-height:59px !important; }
  body:has(.ils-portal) > header a.home-link:has(img.journal-logo)::after { font-size:17px; white-space:normal; }
  .ils-portal .ils-hero-inner { padding:27px 0 35px !important; }
  .ils-portal .ils-hero h2 { font-size:24px !important; }
  .ils-portal .ils-search { flex-direction:column; }
  .ils-portal .ils-search button { width:100%; }
  .ils-portal .ils-metrics { grid-template-columns:1fr !important; gap:8px; margin-top:-12px !important; }
  .ils-portal .ils-metric { min-height:55px; }
  .ils-portal .ils-panel { padding:14px; }
  .ils-portal .ils-filter,.ils-portal .ils-filter input { width:100%; }
  .ils-portal .ils-grid { grid-template-columns:minmax(0,1fr) !important; gap:12px !important; }
  .ils-portal .ils-cover { height:195px !important; min-height:195px !important; }
  .ils-portal .ils-cover img { height:170px !important; max-height:170px !important; }
  .ils-portal .ils-journal h3 { min-height:0; }
  body:has(.ils-portal) footer.site-footer .container-footer { width:calc(100% - 30px); }
}


/* ILS PORTAL 1.0.3: unified white header, legal credentials, white PKP/OJS logo */
body:has(.ils-portal) > header,
body:has(.ils-portal) > header .header,
body:has(.ils-portal) .ils-site-brandbar { background:#fff !important; }
body:has(.ils-portal) .ils-brand-row,
body:has(.ils-portal) > header .upper-header.row { max-width:1120px; margin-left:auto !important; margin-right:auto !important; }
body:has(.ils-portal) .ils-site-brand,
body:has(.ils-portal) > header a.home-link { flex-wrap:nowrap !important; }
body:has(.ils-portal) .ils-site-brand-text strong {
  font-size:clamp(15px,1.72vw,23px) !important;
  white-space:nowrap !important; letter-spacing:-.35px;
}
body:has(.ils-portal) > header a.home-link:has(img.journal-logo)::after {
  white-space:nowrap !important; font-size:clamp(15px,1.72vw,23px) !important;
  letter-spacing:-.35px; line-height:1.2;
}
body:has(.ils-portal) > header h1.logo-wrapper { flex:1 1 auto !important; }
body:has(.ils-portal) > header img.journal-logo { max-width:76px !important; max-height:70px !important; }
body:has(.ils-portal) > header .upper-header.row { flex-wrap:nowrap !important; }
/* Remove any duplicate hero heading if an old cached Smarty template renders it */
.ils-portal .ils-hero h2#ilsPortalTitle { display:none !important; }
.ils-portal .ils-hero-inner { padding-top:27px !important; padding-bottom:34px !important; }
.ils-portal .ils-eyebrow { margin-bottom:9px; }
.ils-portal .ils-hero p { max-width:990px; margin-bottom:14px; }
.ils-portal .ils-legal {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px 18px; max-width:1050px; padding:12px 15px;
  margin:4px 0 16px; border:1px solid rgba(255,255,255,.2);
  border-radius:6px; background:rgba(2,23,40,.2);
}
.ils-portal .ils-legal > div { min-width:0; display:flex; align-items:baseline; gap:7px; flex-wrap:wrap; }
.ils-portal .ils-legal span { color:#f2d081; font-size:10px; font-weight:700; }
.ils-portal .ils-legal strong { color:#fff; font-size:11px; font-weight:500; overflow-wrap:anywhere; }
body:has(.ils-portal) footer.site-footer .footer-brand-image,
body:has(.ils-portal) footer.site-footer .pkpbrand-wrapper img {
  filter:brightness(0) invert(1) !important;
  opacity:.95; max-width:132px; max-height:40px;
}
body:has(.ils-portal) footer.site-footer .pkpbrand-wrapper a:hover img { opacity:1; }
@media (max-width:900px) {
  body:has(.ils-portal) > header a.home-link:has(img.journal-logo)::after,
  body:has(.ils-portal) .ils-site-brand-text strong { font-size:clamp(13px,2.25vw,19px) !important; }
  body:has(.ils-portal) > header img.journal-logo { max-width:62px !important; max-height:59px !important; }
  .ils-portal .ils-legal { grid-template-columns:1fr; }
}
@media (max-width:600px) {
  body:has(.ils-portal) .ils-site-brand-text strong,
  body:has(.ils-portal) > header a.home-link:has(img.journal-logo)::after {
    white-space:normal !important; font-size:15px !important;
  }
  body:has(.ils-portal) > header .upper-header.row { flex-wrap:wrap !important; }
  .ils-portal .ils-legal { padding:11px; }
  .ils-portal .ils-legal > div { display:block; }
  .ils-portal .ils-legal span { display:block; margin-bottom:1px; }
}


/* ILS JOURNAL PORTAL v1.0.4 - CENTERED HEADER BRAND
   Centers logo, journal title, and supporting text while preserving
   the white header, legal details, journal cards and navy footer.
*/
/* Custom portal header: logo and title stay alongside one another. */
body:has(.ils-portal) .ils-brand-row {
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  text-align:center !important;
  width:min(1120px,calc(100% - 32px)) !important;
  margin-inline:auto !important;
}
body:has(.ils-portal) a.ils-site-brand {
  display:inline-flex !important;
  justify-content:center !important;
  align-items:center !important;
  gap:14px !important;
  max-width:100% !important;
  margin-inline:auto !important;
  text-align:center !important;
}
body:has(.ils-portal) .ils-site-brand-text {
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
}
body:has(.ils-portal) .ils-site-brand-text strong,
body:has(.ils-portal) .ils-site-brand-text small {
  display:block !important;
  text-align:center !important;
  margin-inline:auto !important;
}
/* Classic fallback header: centered entire logo + name group. */
body:has(.ils-portal) > header .upper-header.row {
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  position:relative !important;
  width:min(1120px,calc(100% - 32px)) !important;
  margin-inline:auto !important;
}
body:has(.ils-portal) > header h1.logo-wrapper {
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  flex:1 1 100% !important;
  width:100% !important;
  text-align:center !important;
  margin:0 !important;
}
body:has(.ils-portal) > header a.home-link {
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:14px !important;
  max-width:100% !important;
  margin-inline:auto !important;
  text-align:center !important;
}
body:has(.ils-portal) > header a.home-link:has(img.journal-logo)::after {
  text-align:center !important;
  max-width:none !important;
}
body:has(.ils-portal) > header #user-nav-wraper {
  position:absolute !important;
  right:0 !important;
  top:50% !important;
  transform:translateY(-50%) !important;
  z-index:2;
}
/* Preserve centered logo and text on narrow screens. */
@media(max-width:900px) {
  body:has(.ils-portal) > header #user-nav-wraper {
    position:static !important;
    transform:none !important;
    width:100% !important;
    display:flex !important;
    justify-content:center !important;
  }
  body:has(.ils-portal) > header .upper-header.row {flex-wrap:wrap !important;}
  body:has(.ils-portal) > header #navigationUser {justify-content:center !important;}
}
@media(max-width:600px) {
  body:has(.ils-portal) .ils-brand-row {padding-block:12px !important;}
  body:has(.ils-portal) a.ils-site-brand {gap:9px !important;}
  body:has(.ils-portal) img.ils-site-brand-logo {width:54px !important;height:54px !important;}
  body:has(.ils-portal) .ils-site-brand-text strong {font-size:clamp(13px,3.2vw,16px) !important;white-space:normal !important;}
  body:has(.ils-portal) > header a.home-link {gap:10px !important;}
  body:has(.ils-portal) > header img.journal-logo {max-width:57px !important;max-height:55px !important;}
  body:has(.ils-portal) > header a.home-link:has(img.journal-logo)::after {font-size:clamp(13px,3.2vw,16px) !important;white-space:normal !important;}
}



/* v1.0.7: only establishment AHU and NIB, plain GOLD TEXT beneath hero description.
   This is CSS-generated text for the OJS Additional CSS upload workflow. */
.ils-portal .ils-hero .ils-legal,
.ils-portal .ils-hero .ils-legal-compact {
  display: none !important;
}
.ils-portal .ils-hero-inner > p:first-of-type {
  margin-inline: auto !important;
  margin-bottom: 9px !important;
  text-align: center !important;
}
.ils-portal .ils-hero-inner > p:first-of-type::after {
  content: "AHU-0066166-AH.01.14 Tahun 2026  |  NIB: 1410260084148";
  display: block !important;
  width: 100%;
  margin: 11px auto 15px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #f4d17c !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.75 !important;
  letter-spacing: .3px !important;
  text-align: center !important;
  text-transform: none !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  box-shadow: none !important;
}
@media (max-width: 600px) {
  .ils-portal .ils-hero-inner > p:first-of-type::after {
    font-size: 11px !important;
    letter-spacing: 0 !important;
  }
}


/* v1.0.8: CENTER ALL HERO TEXT, LEGALITY, AND BRANDING.
   Keeps journal directory/card text layout intact. */
body:has(.ils-portal) .ils-hero .ils-hero-inner {
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
}
body:has(.ils-portal) .ils-hero .ils-eyebrow,
body:has(.ils-portal) .ils-hero .ils-hero-inner > h2,
body:has(.ils-portal) .ils-hero .ils-hero-inner > p,
body:has(.ils-portal) .ils-hero .ils-hero-inner > p::after {
  text-align:center !important;
  margin-left:auto !important;
  margin-right:auto !important;
}
body:has(.ils-portal) .ils-hero .ils-hero-inner > p {
  width:100% !important;
  max-width:790px !important;
  align-self:center !important;
}
body:has(.ils-portal) .ils-hero .ils-hero-inner > p:first-of-type::after {
  content:"AHU-0066166-AH.01.14 Tahun 2026  |  NIB: 1410260084148" !important;
  display:block !important;
  color:#f4d17c !important;
  background:transparent !important;
  width:100% !important;
  text-align:center !important;
  font-weight:700 !important;
  margin:12px auto 0 !important;
  padding:0 !important;
}
body:has(.ils-portal) .ils-hero .ils-search {
  margin:18px auto 0 !important;
  align-self:center !important;
}
body:has(.ils-portal) .ils-site-brandbar .ils-brand-row,
body:has(.ils-portal) .ils-site-brand-text,
body:has(.ils-portal) > header .upper-header.row,
body:has(.ils-portal) footer.site-footer .container-footer {
  text-align:center !important;
}
body:has(.ils-portal) footer.site-footer .user-page-footer,
body:has(.ils-portal) footer.site-footer .user-page-footer * {
  text-align:center !important;
}
@media(max-width:600px) {
  body:has(.ils-portal) .ils-hero .ils-hero-inner > p:first-of-type::after {
    font-size:11px !important;
    line-height:1.6 !important;
  }
}
