/* TESCON Student E-Library */
.tndl,.tndl-body{--p:#0b3d6e;--a:#b8902f;--ink:#1d2733;--muted:#5f6b7a;--line:#e2e6ec;--bg:#f4f6fa;--ok:#1a7f37;--err:#b42318}
.tndl{color:var(--ink);font-size:16px;line-height:1.55}
.tndl *{box-sizing:border-box}
.tndl h2{color:var(--p);font-size:1.55em;margin:.2em 0 .5em;line-height:1.25}
.tndl h3{color:var(--p);font-size:1.15em;margin:1.4em 0 .6em}
.tndl a{color:var(--p)}
.tndl .muted{color:var(--muted)}
.tndl .hint{color:var(--muted);font-size:.88em;margin:.2em 0 .8em}
.tndl .hint.ok{color:var(--ok)}
.tndl .eyebrow{display:block;font-size:.75em;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--a)}
.tndl .crumb{font-size:.9em;margin:0 0 12px}

/* Buttons and forms */
.tndl-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;background:var(--p);color:#fff!important;border:1px solid var(--p);border-radius:8px;padding:.6em 1.1em;font-weight:600;font-size:.95em;text-decoration:none!important;cursor:pointer;line-height:1.2;font-family:inherit}
.tndl-btn:hover{filter:brightness(1.12)}
.tndl-btn.ghost{background:#fff;color:var(--p)!important}
.tndl-btn.sm{padding:.38em .75em;font-size:.85em}
.tndl-btn.block{width:100%}
.tndl form{margin:0}
.tndl form.inline{display:inline}
.tndl .f{display:flex;flex-direction:column;gap:4px;font-weight:600;font-size:.9em;margin-bottom:12px}
.tndl .f small{font-weight:400;color:var(--muted)}
.tndl input[type=text],.tndl input:not([type]),.tndl input[type=email],.tndl input[type=password],.tndl input[type=search],.tndl select{width:100%;padding:.62em .75em;border:1px solid #cfd6df;border-radius:8px;font:inherit;font-weight:400;background:#fff;color:var(--ink)}
.tndl input:focus,.tndl select:focus{outline:2px solid var(--p);outline-offset:1px}
.tndl .chk{display:flex;gap:8px;align-items:flex-start;font-size:.9em;margin:.4em 0 1em}
.tndl .chk input{margin-top:.25em}
.tndl hr{border:0;border-top:1px solid var(--line);margin:18px 0}
.tndl .links{font-size:.92em;margin:.8em 0 0}

/* Notices, cards */
.tndl-notice{border-left:4px solid;border-radius:8px;padding:.8em 1em;margin:0 0 14px;background:#fff}
.tndl-notice.ok{border-color:var(--ok);background:#effaf2}
.tndl-notice.err{border-color:var(--err);background:#fef3f2}
.tndl-auth{max-width:460px;margin:10px auto}
.tndl-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:22px 24px;box-shadow:0 1px 3px rgba(16,24,40,.05);margin-bottom:16px}
.tndl-card.wide{max-width:640px}
.tndl-idbox{background:var(--bg);border-radius:10px;padding:10px 14px;margin:0 0 14px}
.tndl-idbox span{display:block;font-size:.78em;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}
.tndl-idbox strong{font-size:1.15em;color:var(--p)}
.tndl-idbox small{margin-left:8px;color:var(--a);font-weight:700}
.tndl-empty{background:var(--bg);border-radius:12px;padding:28px;text-align:center;color:var(--muted)}

/* Home */
.tndl-hero{background:linear-gradient(135deg,var(--p),#1b5e9e);color:#fff;border-radius:16px;padding:24px 26px;margin-bottom:16px}
.tndl-hero h2{color:#fff;margin:.15em 0 .3em}
.tndl-hero p{margin:.2em 0;opacity:.95;max-width:780px}
.tndl-hero .eyebrow{color:#f3d58a}
.tndl-hero.course{background:#fff;color:var(--ink);border:1px solid var(--line)}
.tndl-hero.course h2{color:var(--p)}
.tndl-hero.course .eyebrow{color:var(--a)}
.tndl-hero .facts{display:flex;flex-wrap:wrap;gap:6px 24px;list-style:none;margin:.4em 0 .8em;padding:0;font-size:.92em}
.tndl-hero .facts b{display:block;font-size:.72em;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}
.tndl-hero details summary{cursor:pointer;font-weight:600;color:var(--p)}
.tndl-hero details ol{margin:.5em 0 0 1.2em}
.tndl-search{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px}
.tndl-search input{flex:3;min-width:220px}
.tndl-search select{flex:1;min-width:130px;width:auto}
.tndl-levels{display:flex;gap:6px;flex-wrap:wrap;margin:6px 0 4px;border-bottom:2px solid var(--line)}
.tndl-levels a{padding:.6em 1.1em;text-decoration:none;font-weight:600;color:var(--muted);border-bottom:3px solid transparent;margin-bottom:-2px}
.tndl-levels a.on{color:var(--p);border-color:var(--a)}
.tndl-sem{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.tndl-sem small{font-size:.75em;color:var(--muted);font-weight:500}
.tndl-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px}
.tndl-course{display:flex;flex-direction:column;gap:4px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px 16px;text-decoration:none!important;color:var(--ink)!important;transition:box-shadow .15s,transform .15s;border-top:4px solid var(--p)}
.tndl-course:hover{box-shadow:0 6px 18px rgba(16,24,40,.08);transform:translateY(-1px)}
.tndl-course .code{font-size:.8em;font-weight:700;color:var(--a);letter-spacing:.05em}
.tndl-course strong{font-size:1em;line-height:1.3}
.tndl-course .meta{font-size:.8em;color:var(--muted);margin-top:auto}
.tndl-two{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:10px}
.tndl-mini{list-style:none;margin:0;padding:0}
.tndl-mini li{padding:.45em 0;border-bottom:1px solid var(--line)}
.tndl-mini small{color:var(--muted);margin-left:6px}

/* Lists */
.tndl-type{border-bottom:1px solid var(--line);padding-bottom:6px}
.tndl-list{list-style:none;margin:0;padding:0}
.tndl-res{display:flex;gap:12px;align-items:flex-start;background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin-bottom:8px}
.tndl-res .ic{font-size:1.5em;line-height:1;flex:0 0 auto}
.tndl-res .body{flex:1;min-width:0}
.tndl-res .t{font-weight:600;text-decoration:none;color:var(--ink)}
.tndl-res .t:hover{color:var(--p);text-decoration:underline}
.tndl-res .meta{font-size:.82em;color:var(--muted)}
.tndl-res p{margin:.3em 0 0;font-size:.9em;color:#3c4654}
.tndl-res .acts{display:flex;gap:6px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.tndl .tag{display:inline-block;background:#fff4d6;color:#7a5200;border-radius:99px;font-size:.72em;font-weight:700;padding:.1em .55em}
.tndl-star{background:none;border:0;font-size:1.4em;cursor:pointer;color:#9aa3ae;padding:0 4px;line-height:1}
.tndl-star.on{color:var(--a)}

/* Reader */
.tndl-reader-head{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;align-items:flex-start;margin-bottom:12px}
.tndl-reader-head h2{margin-top:.1em}
.tndl-reader{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#525659;height:80vh;min-height:520px}
.tndl-reader iframe{width:100%;height:100%;border:0}
.tndl-reader.img{height:auto;background:#fff;text-align:center;padding:10px}
.tndl-reader.img img{max-width:100%;height:auto}
.tndl-video{position:relative;padding-top:56.25%;border-radius:12px;overflow:hidden;background:#000}
.tndl-video iframe,.tndl-video video{position:absolute;inset:0;width:100%;height:100%;border:0}
.tndl-copy{font-size:.8em;color:var(--muted);margin-top:14px}
.tndl-notes-tools{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 12px}
.tndl-notes{background:#fff;border:1px solid var(--line);border-radius:12px;padding:26px 30px;font-family:"Source Serif 4",Georgia,serif;font-size:1.05em;line-height:1.7;max-width:860px}
.tndl-notes h2{font-family:Inter,system-ui,sans-serif;font-size:1.15em;border-bottom:2px solid var(--a);padding-bottom:4px;margin:1.4em 0 .6em}
.tndl-notes h2:first-child{margin-top:0}
.tndl-notes ul{padding-left:1.3em}
.tndl-notes li{margin:.25em 0}

/* Quiz */
.tndl-quizcard{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;background:#fff8e8;border:1px solid #f0d58f;border-radius:12px;padding:14px 18px;margin:0 0 16px}
.tndl-quizcard p{margin:.2em 0 0;font-size:.92em}
.tndl-quiz ol{padding-left:1.3em}
.tndl-quiz li{margin-bottom:18px}
.tndl-quiz li p{font-weight:600;margin:0 0 6px}
.tndl-quiz label{display:block;padding:.5em .75em;border:1px solid var(--line);border-radius:8px;margin:5px 0;cursor:pointer;background:#fff}
.tndl-quiz label:hover{background:var(--bg)}
.tndl-score{display:flex;gap:18px;align-items:center;flex-wrap:wrap;border-radius:14px;padding:18px 22px;margin-bottom:16px;background:#fff;border:1px solid var(--line)}
.tndl-score>span{font-size:2.4em;font-weight:700;width:120px;height:120px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff}
.tndl-score.good>span{background:var(--ok)}.tndl-score.mid>span{background:var(--a)}.tndl-score.low>span{background:var(--err)}
.tndl-score p{margin:.2em 0 .6em}
.tndl-review{padding-left:1.3em}
.tndl-review li{background:#fff;border:1px solid var(--line);border-left:4px solid;border-radius:8px;padding:10px 14px;margin-bottom:10px}
.tndl-review li.ok{border-left-color:var(--ok)}.tndl-review li.no{border-left-color:var(--err)}
.tndl-review p{margin:.2em 0}
.tndl-review .exp{font-size:.9em;color:#3c4654;background:var(--bg);border-radius:6px;padding:6px 10px}

/* Table */
.tndl-table{width:100%;border-collapse:collapse;font-size:.93em}
.tndl-table th,.tndl-table td{border-bottom:1px solid var(--line);padding:.55em .6em;text-align:left;vertical-align:top}
.tndl-table th{width:38%;color:var(--muted);font-weight:600}

/* Stand-alone shell */
body.tndl-body{margin:0;background:var(--bg);font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;min-height:100vh;display:flex;flex-direction:column;color:#1d2733}
.tndl-head{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;background:#fff;padding:12px max(16px,calc((100% - 1160px)/2));border-bottom:3px solid var(--a);box-shadow:0 1px 3px rgba(16,24,40,.06)}
.tndl-brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit}
.tndl-brand img{height:52px;width:auto;max-width:220px;object-fit:contain}
.tndl-brand strong{display:block;color:var(--p);font-size:1.04em;line-height:1.2}
.tndl-brand small{display:block;color:#5f6b7a;font-size:.8em}
.tndl-nav{display:flex;gap:2px;flex-wrap:wrap}
.tndl-nav a{padding:.5em .85em;border-radius:8px;text-decoration:none;color:#1d2733;font-weight:500;font-size:.93em}
.tndl-nav a:hover{background:var(--bg)}
.tndl-main{flex:1;width:100%;max-width:1160px;margin:0 auto;padding:24px 16px 40px;box-sizing:border-box}
.tndl-foot{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;background:#fff;border-top:1px solid #e2e6ec;padding:14px max(16px,calc((100% - 1160px)/2));font-size:.82em;color:#5f6b7a}

@media (max-width:720px){
	.tndl-two{grid-template-columns:1fr}
	.tndl-res{flex-wrap:wrap}
	.tndl-res .acts{width:100%;justify-content:flex-start}
	.tndl-notes{padding:18px}
	.tndl-brand img{height:42px!important}
	.tndl-nav{width:100%}.tndl-nav a{flex:1;text-align:center;padding:.5em .3em;font-size:.85em}
	.tndl-reader{height:70vh}
}
@media print{
	.tndl-head,.tndl-foot,.tndl-nav,.tndl .crumb,.tndl-notes-tools,.tndl-reader-head .acts,.tndl-copy{display:none!important}
	body.tndl-body{background:#fff}
	.tndl-notes{border:0;padding:0;max-width:none}
}
.tndl-print-head{display:none}
@media print{.tndl-print-head{display:block;border-bottom:2px solid #b8902f;padding-bottom:8px;margin-bottom:14px;font-family:Inter,Arial,sans-serif;font-size:12px;color:#333}.tndl-reader-head{display:block}.tndl-notes table{page-break-inside:auto}.tndl-notes tr{page-break-inside:avoid}}
.tndl-notes table{width:100%;border-collapse:collapse;font-family:Inter,Arial,sans-serif;font-size:.85em}
.tndl-notes th,.tndl-notes td{border:1px solid #cfd6df;padding:8px}

/* v1.4 logo */
.tndl-brandbar{display:flex;align-items:center;gap:12px;padding:10px 0 14px;margin-bottom:14px;border-bottom:3px solid var(--a,#b8902f)}.tndl-brandbar img{max-width:200px;object-fit:contain}.tndl-brandbar strong{display:block;color:var(--p,#0b3d6e)}.tndl-brandbar small{display:block;color:#5f6b7a;font-size:.85em}
.tndl-print-logo{float:left;margin-right:10px}.tndl-print-head:after{content:"";display:block;clear:both}

/* v1.4.1 professional sign-in (logo shown once) */
.tndl-body.is-auth{background:#fff}
.tndl-body.is-auth .tndl-main{max-width:none;padding:0;margin:0}
.tndl-split{display:grid;grid-template-columns:minmax(320px,44%) 1fr;border-radius:14px;overflow:hidden;border:1px solid var(--line);background:#fff}
.tndl-split.full{min-height:100vh;border:0;border-radius:0}
.tndl-brandpanel{position:relative;display:flex;flex-direction:column;justify-content:center;padding:48px clamp(28px,5vw,72px) 72px;color:#fff;background:var(--p);background:linear-gradient(160deg,var(--p) 0%,color-mix(in srgb,var(--p) 78%,#000) 100%);overflow:hidden}
.tndl-brandpanel::after{content:"";position:absolute;right:-120px;bottom:-120px;width:360px;height:360px;border-radius:50%;border:40px solid rgba(255,255,255,.06)}
.tndl-bp-in{position:relative;z-index:1;max-width:440px}
.tndl-bp-logo{display:block;height:96px;width:auto;max-width:240px;object-fit:contain;margin-bottom:22px;background:#fff;border-radius:16px;padding:10px;box-shadow:0 6px 20px rgba(0,0,0,.18)}
.tndl-brandpanel h1{font-size:clamp(1.5rem,2.4vw,2rem);line-height:1.2;margin:0 0 8px;color:#fff}
.tndl-bp-sub{margin:0 0 26px;color:rgba(255,255,255,.85);font-size:1.02rem;padding-bottom:18px;border-bottom:3px solid var(--a)}
.tndl-bp-list{list-style:none;padding:0;margin:0;display:grid;gap:10px;color:rgba(255,255,255,.9);font-size:.95rem}
.tndl-bp-list li{padding-left:28px;position:relative}.tndl-bp-list li::before{content:"✓";position:absolute;left:0;top:0;width:20px;height:20px;border-radius:50%;background:rgba(255,255,255,.14);display:flex;align-items:center;justify-content:center;font-size:.72rem}
.tndl-bp-link{position:relative;z-index:1;display:inline-block;margin-top:26px;color:#fff!important;font-weight:600;font-size:.92rem;text-decoration:underline;text-underline-offset:3px}
.tndl-bp-foot{position:absolute;left:clamp(28px,5vw,72px);bottom:22px;color:rgba(255,255,255,.6);font-size:.78rem;z-index:1}
.tndl-formpanel{display:flex;align-items:center;justify-content:center;padding:40px 24px;background:#fff}
.tndl-formpanel .tndl-auth{width:100%;max-width:420px;margin:0}
.tndl-formpanel .tndl-card{border:0;box-shadow:none;padding:0;background:none}
.tndl-formpanel .tndl-card h2{font-size:1.65rem;margin:0 0 6px;color:var(--ink)}
.tndl-formpanel label.f input{padding:13px 14px;border-radius:10px}
.tndl-formpanel label.f input:focus{outline:none;border-color:var(--p);box-shadow:0 0 0 4px color-mix(in srgb,var(--p) 15%,transparent)}
.tndl-formpanel input[aria-invalid="true"]{border-color:var(--err)!important;box-shadow:0 0 0 4px rgba(180,35,24,.10)}
.tndl-formpanel .tndl-btn.block{padding:.85em 1.1em;border-radius:10px}
.tndl-pw{position:relative;display:block}.tndl-pw input{padding-right:70px!important}
.tndl-pwtoggle{position:absolute;right:8px;top:50%;transform:translateY(-50%);margin-top:3px;border:0;background:none;color:var(--p);font-weight:600;font-size:.82rem;cursor:pointer;padding:6px 8px;border-radius:6px}
.tndl-mbrand{display:none;align-items:center;gap:12px;margin-bottom:24px;padding-bottom:16px;border-bottom:3px solid var(--a)}
.tndl-mbrand img{object-fit:contain;max-width:120px}.tndl-mbrand strong{display:block;color:var(--p);line-height:1.2}.tndl-mbrand small{display:block;color:var(--muted)}
.tndl-notice.err{color:var(--err)}
@media (max-width:860px){
	.tndl-split{grid-template-columns:1fr;border:0}
	.tndl-brandpanel{display:none}
	.tndl-mbrand{display:flex}
	.tndl-formpanel{align-items:flex-start;padding:28px 20px}
}
