/*
Theme Name: SPL Fast Lookup
Theme URI: https://www.studentportallogin.com/
Author: Student Portal Login
Description: Lightweight directory theme for Student Portal Login. Fast lookup layout with A-Z index, official-login box, and ad-ready sidebars. Keeps the FAQ section and existing widget areas from the previous theme.
Version: 1.3.0
Requires at least: 6.0
Requires PHP: 8.0
License: GPLv2 or later
Text Domain: spl-lookup
*/

:root{
  --spl-ink:#1A1F1E;
  --spl-muted:#4B5553;
  --spl-line:#E3E8E7;
  --spl-soft:#F3F6F5;
  --spl-teal:#0F766E;
  --spl-teal-dark:#0B524D;
  --spl-head:#0B2B28;
  --spl-mint:#5EEAD4;
  --spl-max:1200px;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:"IBM Plex Sans",system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--spl-ink);background:#fff;font-size:16px;line-height:1.6}
a{color:var(--spl-teal)}
a:hover{color:var(--spl-teal-dark)}
img{max-width:100%;height:auto}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
.skip-link:focus{position:fixed;top:8px;left:8px;width:auto;height:auto;clip:auto;background:#fff;color:var(--spl-ink);padding:10px 14px;z-index:1000}

/* Header */
.spl-header{background:var(--spl-head);color:#fff}
.spl-header__inner{max-width:var(--spl-max);margin:0 auto;padding:14px 24px;display:flex;flex-wrap:wrap;gap:16px;align-items:center}
.spl-logo{color:#fff;text-decoration:none;font-weight:700;font-size:19px;margin-right:12px;white-space:nowrap}
.spl-logo:hover{color:#fff}
.spl-logo span{color:var(--spl-mint)}
.spl-search{flex:1 1 360px;display:flex;gap:8px;min-width:0;margin:0}
.spl-search input[type=search]{flex:1 1 auto;min-width:0;height:44px;padding:0 14px;font:inherit;font-size:15px;border:0;border-radius:4px;color:var(--spl-ink)}
.spl-search button{height:44px;padding:0 18px;font:inherit;font-weight:600;background:var(--spl-mint);color:var(--spl-head);border:0;border-radius:4px;cursor:pointer}
.spl-nav ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:18px;font-size:14px;font-weight:500}
.spl-nav a{color:#D5F5F0;text-decoration:none}
.spl-nav a:hover{color:#fff;text-decoration:underline}

/* Layout */
.spl-wrap{max-width:var(--spl-max);margin:0 auto;padding:28px 24px;display:flex;flex-wrap:wrap;gap:32px}
.spl-main{flex:999 1 640px;min-width:0;display:flex;flex-direction:column;gap:28px}
.spl-aside{flex:1 1 300px;min-width:0;display:flex;flex-direction:column;gap:20px}
.spl-aside .widget{border:1px solid var(--spl-line);border-radius:6px;padding:18px}
.spl-aside .widget_custom_html,.spl-aside .widget_block:has(> p:only-child > a:empty){border:0;padding:0}
.spl-aside .widget-title{margin:0 0 10px;font-size:16px}
.spl-aside ul{margin:0;padding-left:18px}
.spl-aside li{margin:4px 0}

/* Typography */
h1,h2,h3,h4{line-height:1.25}
.spl-h1{margin:0;font-size:34px;font-weight:700}
.spl-lede{margin:6px 0 0;font-size:17px;color:var(--spl-muted)}
.spl-section-title{margin:0 0 12px;font-size:20px}
.spl-crumbs{font-size:13px;color:var(--spl-muted)}
.spl-crumbs a{color:var(--spl-muted)}

/* Badge + official login box */
.spl-badge{display:inline-block;font-size:13px;color:var(--spl-muted);margin-top:4px}
.spl-login-box{border:2px solid var(--spl-teal);border-radius:6px;padding:20px;display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:space-between}
.spl-login-box__label{font-size:13px;font-weight:600;color:var(--spl-teal);text-transform:uppercase;letter-spacing:.06em}
.spl-login-box__url{font-size:18px;font-weight:600;overflow-wrap:anywhere}
.spl-btn{display:inline-block;background:var(--spl-teal);color:#fff;text-decoration:none;font-weight:600;font-size:16px;padding:14px 22px;border-radius:4px}
.spl-btn:hover{background:var(--spl-teal-dark);color:#fff}
.spl-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));border:1px solid var(--spl-line);border-radius:6px;overflow:hidden}
.spl-facts div{padding:16px;border-bottom:1px solid var(--spl-line)}
.spl-facts span{display:block;font-size:13px;color:var(--spl-muted)}

/* Content */
.spl-content{font-size:16px}
.spl-content h2{font-size:22px;margin:1.6em 0 .5em}
.spl-content h3{font-size:18px;margin:1.4em 0 .4em}
.spl-content table{width:100%;border-collapse:collapse;display:block;overflow-x:auto}
.spl-content td,.spl-content th{border:1px solid var(--spl-line);padding:10px 12px;text-align:left}
.spl-content figure{margin:16px 0}
.spl-content .aligncenter{display:block;margin-left:auto;margin-right:auto}
.spl-content figcaption{font-size:inherit;text-align:left}
.spl-disclaimer{font-size:14px;color:var(--spl-muted);border-top:1px solid var(--spl-line);padding-top:16px}

/* Home */
.spl-intro{border-bottom:1px solid var(--spl-line);padding-bottom:24px}
.spl-az{display:flex;flex-wrap:wrap;gap:6px}
.spl-az a,.spl-az span{width:38px;height:38px;display:flex;align-items:center;justify-content:center;border:1px solid #CFD8D6;border-radius:4px;text-decoration:none;font-weight:600}
.spl-az span{color:#A9B6B3;border-color:var(--spl-line)}
.spl-table-wrap{border:1px solid var(--spl-line);border-radius:6px;overflow-x:auto}
.spl-table{width:100%;border-collapse:collapse;font-size:15px}
.spl-table th{background:var(--spl-soft);text-align:left;padding:12px 14px}
.spl-table td{padding:12px 14px;border-top:1px solid var(--spl-line)}
.spl-letter{margin-top:8px}
.spl-letter h3{margin:0 0 8px;font-size:18px;border-bottom:1px solid var(--spl-line);padding-bottom:6px}
.spl-cols{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:6px 18px;margin:0;padding:0;list-style:none;font-size:15px}

/* Lists */
.spl-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:18px}
.spl-list h2{margin:0;font-size:19px}
.spl-list p{margin:4px 0 0;color:var(--spl-muted);font-size:15px}
.spl-pager{display:flex;gap:12px;flex-wrap:wrap}

/* Footer */
.spl-footer{border-top:1px solid var(--spl-line);background:var(--spl-soft);margin-top:24px}
.spl-footer__inner{max-width:var(--spl-max);margin:0 auto;padding:24px;font-size:13px;color:var(--spl-muted);line-height:1.6;display:flex;flex-direction:column;gap:12px}
.spl-footer .widget{margin:0}

@media (max-width:640px){
  .spl-h1{font-size:28px}
  .spl-header__inner{padding:12px 16px}
  .spl-wrap{padding:20px 16px}
}

/* Search form inside page content */
.spl-main .spl-search{flex:none;max-width:560px}
.spl-main .spl-search input[type=search]{border:1px solid #CFD8D6}
.spl-main .spl-search button{background:var(--spl-teal);color:#fff}

.spl-btns{display:flex;flex-wrap:wrap;gap:10px}
.spl-btn--alt{background:#fff;color:var(--spl-teal);border:2px solid var(--spl-teal);padding:12px 20px}
.spl-btn--alt:hover{background:var(--spl-soft);color:var(--spl-teal-dark)}
.spl-states{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:18px}
.spl-states h3{margin:0 0 6px;font-size:16px}
.spl-states ul{margin:0;padding:0;list-style:none;font-size:15px}
.spl-states li{margin:3px 0}

/* School page components */
.spl-content > *:first-child{margin-top:0}
.spl-quick{background:#ECFDF8;border:1px solid #A7E9DA;border-radius:8px;padding:18px 20px;margin:0 0 24px}
.spl-quick__label{display:block;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#0F766E;margin-bottom:6px}
.spl-quick p{margin:0;font-size:17px;line-height:1.55}
.spl-toc{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 28px;padding:0;list-style:none;font-size:14px}
.spl-toc li:first-child{font-weight:600;color:var(--spl-muted);margin-right:4px}
.spl-toc a{display:inline-block;padding:6px 12px;border:1px solid #CFD8D6;border-radius:999px;text-decoration:none;color:var(--spl-ink)}
.spl-toc a:hover{border-color:var(--spl-teal);color:var(--spl-teal)}
.spl-content h2{scroll-margin-top:16px;padding-top:12px;border-top:1px solid var(--spl-line)}
.spl-steps{list-style:none;counter-reset:spl-step;margin:16px 0;padding:0;display:flex;flex-direction:column;gap:12px}
.spl-steps li{counter-increment:spl-step;position:relative;padding:14px 16px 14px 60px;border:1px solid var(--spl-line);border-radius:8px;background:#fff;line-height:1.5}
.spl-steps li::before{content:counter(spl-step);position:absolute;left:16px;top:12px;width:30px;height:30px;border-radius:50%;background:var(--spl-teal);color:#fff;font-weight:700;font-size:15px;display:flex;align-items:center;justify-content:center}
.spl-steps strong{display:block}
.spl-tip{border-left:4px solid #F2B544;background:#FFF8E8;padding:12px 16px;border-radius:0 6px 6px 0;margin:16px 0;font-size:15px}
.spl-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;margin:16px 0;padding:0;list-style:none}
.spl-cards a{display:flex;flex-direction:column;gap:4px;height:100%;padding:16px;border:1px solid var(--spl-line);border-radius:8px;text-decoration:none;color:var(--spl-ink);background:#fff}
.spl-cards a:hover{border-color:var(--spl-teal);box-shadow:0 2px 10px rgba(15,118,110,.08)}
.spl-cards strong{color:var(--spl-teal)}
.spl-cards span{font-size:14px;color:var(--spl-muted)}
.spl-acc{border:1px solid var(--spl-line);border-radius:8px;margin:16px 0;overflow:hidden}
.spl-acc details{border-top:1px solid var(--spl-line)}
.spl-acc details:first-child{border-top:0}
.spl-acc summary{cursor:pointer;padding:14px 16px;font-weight:600;list-style:none;display:flex;justify-content:space-between;gap:12px}
.spl-acc summary::-webkit-details-marker{display:none}
.spl-acc summary::after{content:"+";font-size:20px;line-height:1;color:var(--spl-teal)}
.spl-acc details[open] summary::after{content:"\2013"}
.spl-acc details > div{padding:0 16px 16px;line-height:1.6}
.spl-acc details > div p{margin:0 0 8px}
.spl-content .spl-meta-table{width:100%;border-collapse:collapse;margin:16px 0;font-size:15px;display:table}
.spl-meta-table th{width:38%;text-align:left;background:var(--spl-soft);font-weight:600}
.spl-login-box{margin-bottom:12px}
.spl-facts{margin-bottom:24px}
@media (max-width:640px){.spl-steps li{padding-left:54px}.spl-meta-table th{width:45%}}
