/*
Theme Name: Pustaka Skripsi
Template: twentytwentyfive
Description: Tema anak Twenty Twenty-Five untuk pustakaskripsi.com. Sumber di folder server/tema/ proyek; jangan diedit lewat Site Editor (lihat README.md).
Version: 1.0.0
Text Domain: pustakaskripsi
*/

/* ---------- Dasar ---------- */
:root {
	--ps-radius: 14px;
	--ps-shadow: 0 1px 2px rgba(20, 33, 58, .06), 0 6px 20px rgba(20, 33, 58, .06);
	--ps-line: var(--wp--preset--color--accent-6);
}
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { text-underline-offset: .18em; text-decoration-thickness: 1px; }
::selection { background: var(--wp--preset--color--accent-3); }

/* ---------- Header ---------- */
.ps-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(247, 248, 251, .92);
	backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid var(--ps-line);
}
.admin-bar .ps-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ps-header { top: 46px; } }
.ps-brand { gap: .6rem; }
.ps-logo { display: inline-flex; line-height: 0; }
.ps-brand .wp-block-site-title a { text-decoration: none; letter-spacing: -.02em; }
.ps-brand .wp-block-site-title a span { color: var(--wp--preset--color--accent-2); }
.ps-header .wp-block-navigation a { text-decoration: none; font-weight: 600; }
.ps-header .wp-block-navigation a:hover { color: var(--wp--preset--color--accent-1); }
.ps-header .wp-block-navigation .current-menu-item > a,
.ps-header .wp-block-navigation a[aria-current="page"] { color: var(--wp--preset--color--accent-1); }

/* ---------- Hero ---------- */
.ps-hero {
	position: relative; overflow: hidden;
	background:
		radial-gradient(900px 420px at 85% -10%, rgba(227, 167, 47, .22), transparent 60%),
		radial-gradient(700px 500px at -10% 110%, rgba(90, 140, 210, .28), transparent 60%),
		linear-gradient(160deg, #0f2240 0%, #1a3d6e 55%, #1f4e8c 100%);
	color: #f2f5fa;
}
.ps-hero h1, .ps-hero p { color: inherit; }
.ps-hero .ps-eyebrow { color: #f3cd7e; }
.ps-hero h1 { max-width: 15em; }
.ps-hero .ps-lead { max-width: 36em; opacity: .9; }
.ps-hero .wp-block-search__inside-wrapper {
	background: #fff; border: 0; border-radius: 999px; padding: 5px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}
.ps-hero .wp-block-search__input { border: 0; padding: .7rem 1.1rem; background: transparent; font-size: 1rem; }
.ps-hero .wp-block-search__input:focus { outline: none; }
.ps-hero .wp-block-search__button {
	border-radius: 999px; margin: 0; padding: .7rem 1.4rem;
	background: var(--wp--preset--color--accent-2); color: #2a1d04; font-weight: 700;
}
.ps-hero .wp-block-search { max-width: 560px; }
.ps-hero-tags { gap: .5rem; }
.ps-hero-tags a {
	display: inline-block; padding: .3rem .8rem; border-radius: 999px; text-decoration: none;
	background: rgba(255, 255, 255, .12); color: #fff; font-size: .875rem; border: 1px solid rgba(255, 255, 255, .18);
}
.ps-hero-tags a:hover { background: rgba(255, 255, 255, .22); }
.ps-hero-art { position: absolute; right: -40px; bottom: -60px; width: 420px; opacity: .14; pointer-events: none; }
@media (max-width: 900px) { .ps-hero-art { display: none; } }

/* ---------- Label kecil ---------- */
.ps-eyebrow {
	text-transform: uppercase; letter-spacing: .12em; font-weight: 700;
	font-size: .78rem !important; color: var(--wp--preset--color--accent-1);
}

/* ---------- Kartu topik ---------- */
.ps-topic {
	display: block; height: 100%; padding: 1.4rem 1.4rem 1.2rem; border-radius: var(--ps-radius);
	background: var(--wp--preset--color--base); border: 1px solid var(--ps-line);
	text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.ps-topic:hover { transform: translateY(-3px); box-shadow: var(--ps-shadow); border-color: var(--wp--preset--color--accent-3); }
.ps-topic .ps-ico {
	width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: .9rem;
	background: var(--wp--preset--color--accent-5); color: var(--wp--preset--color--accent-1);
}
.ps-topic strong { display: block; font-size: 1.1rem; margin-bottom: .3rem; }
.ps-topic span { display: block; font-size: .92rem; color: var(--wp--preset--color--accent-4); line-height: 1.5; }
.ps-topic em { display: inline-block; margin-top: .8rem; font-style: normal; font-weight: 600; font-size: .9rem; color: var(--wp--preset--color--accent-1); }

/* ---------- Kartu artikel (query loop) ---------- */
.ps-cards > li { display: flex; }
.ps-card {
	width: 100%; padding: 1.5rem; border-radius: var(--ps-radius);
	background: var(--wp--preset--color--base); border: 1px solid var(--ps-line);
	border-top: 4px solid var(--wp--preset--color--accent-1);
	transition: box-shadow .15s ease, transform .15s ease;
}
.ps-card:hover { box-shadow: var(--ps-shadow); transform: translateY(-2px); }
.ps-card .wp-block-post-title a { text-decoration: none; }
.ps-card .wp-block-post-title a:hover { color: var(--wp--preset--color--accent-1); }
.ps-card .wp-block-post-excerpt { color: var(--wp--preset--color--accent-4); flex-grow: 1; }
.ps-card .wp-block-post-excerpt__excerpt { margin: 0; }
.ps-card .wp-block-post-date { color: var(--wp--preset--color--accent-4); margin-top: auto; }

.ps-pill a, a.ps-pill, .ps-pill {
	text-decoration: none; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.wp-block-post-terms.ps-pill a {
	display: inline-block; padding: .25rem .65rem; border-radius: 999px;
	background: var(--wp--preset--color--accent-5); color: var(--wp--preset--color--accent-1);
}
.wp-block-post-terms.ps-pill .wp-block-post-terms__separator { display: none; }

/* ---------- Pita fitur ---------- */
.ps-feature {
	height: 100%; padding: 2rem; border-radius: calc(var(--ps-radius) + 4px);
	background: var(--wp--preset--color--accent-5); border: 1px solid var(--ps-line);
}
.ps-feature.is-amber { background: #fcf4e2; }
.ps-feature h3 { margin-top: .2rem; }
.ps-feature ul { padding-left: 1.1rem; margin: 0; }
.ps-feature li { margin: .3rem 0; }

.ps-note {
	border-radius: var(--ps-radius); border: 1px dashed var(--wp--preset--color--accent-3);
	background: var(--wp--preset--color--base);
}

/* ---------- Artikel tunggal ---------- */
.ps-article-head { border-bottom: 1px solid var(--ps-line); }
.ps-meta { gap: .35rem .9rem; color: var(--wp--preset--color--accent-4); font-size: .92rem; }
.ps-meta > * { margin: 0 !important; }
.ps-meta .wp-block-post-date + .wp-block-post-date::before { content: "Diperbarui "; }

.entry-content h2 {
	margin-top: 2.4em; padding-top: .2em; scroll-margin-top: 90px;
}
.entry-content h3 { margin-top: 1.8em; scroll-margin-top: 90px; }
.entry-content p, .entry-content li { line-height: 1.75; }
.entry-content li + li { margin-top: .35em; }
.entry-content blockquote {
	margin: 1.6em 0; padding: 1rem 1.25rem; border-left: 4px solid var(--wp--preset--color--accent-2);
	background: #fcf4e2; border-radius: 0 10px 10px 0; font-style: normal;
}
.entry-content blockquote p { margin: 0; }
.entry-content code {
	font-size: .88em; padding: .12em .4em; border-radius: 6px; background: var(--wp--preset--color--accent-5);
}

/* Tabel */
.wp-block-table, .entry-content figure.wp-block-table { margin: 1.8em 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.entry-content table, .wp-block-table table {
	width: 100%; border-collapse: separate; border-spacing: 0; font-size: .93rem; line-height: 1.5;
	border: 1px solid var(--ps-line); border-radius: 12px; overflow: hidden; background: var(--wp--preset--color--base);
}
.entry-content th, .entry-content td, .wp-block-table th, .wp-block-table td {
	border: 0; border-bottom: 1px solid var(--ps-line); padding: .7rem .9rem; text-align: left; vertical-align: top;
}
.entry-content thead th, .wp-block-table thead th {
	background: var(--wp--preset--color--accent-1); color: #fff; font-weight: 700; border-bottom: 0;
}
.entry-content tbody tr:nth-child(even) td, .wp-block-table tbody tr:nth-child(even) td { background: #f5f7fb; }
.entry-content tbody tr:last-child td, .wp-block-table tbody tr:last-child td { border-bottom: 0; }
.wp-block-table thead { border-bottom: 0; }

/* Navigasi sebelum/sesudah */
.ps-postnav { border-top: 1px solid var(--ps-line); padding-top: 1.5rem; }
.ps-postnav a { text-decoration: none; font-weight: 600; }

/* ---------- Halaman ---------- */
.ps-page-head { background: var(--wp--preset--color--accent-5); border-bottom: 1px solid var(--ps-line); }
.wp-block-latest-posts.is-grid li, .wp-block-latest-posts li { margin-bottom: 1.6rem; }
.wp-block-latest-posts__post-title { font-weight: 700; font-size: 1.12rem; text-decoration: none; }
.wp-block-latest-posts__post-date { color: var(--wp--preset--color--accent-4); font-size: .85rem; }
.wp-block-latest-posts__post-excerpt { margin: .3rem 0 0; color: var(--wp--preset--color--accent-4); }
.wp-block-categories-list { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; list-style: none; }
.wp-block-categories-list li a {
	display: inline-block; padding: .35rem .85rem; border-radius: 999px; text-decoration: none;
	background: var(--wp--preset--color--accent-5); color: var(--wp--preset--color--accent-1); font-weight: 600; font-size: .9rem;
}

/* Kalkulator & formulir di halaman alat */
.entry-content input[type="number"], .entry-content input[type="text"], .entry-content select {
	padding: .6rem .8rem; border: 1px solid var(--wp--preset--color--accent-3); border-radius: 10px;
	font: inherit; background: #fff;
}
.entry-content button, .entry-content input[type="submit"] {
	padding: .65rem 1.3rem; border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 700;
	background: var(--wp--preset--color--accent-1); color: #fff;
}
.entry-content button:hover { background: var(--wp--preset--color--contrast); }

/* ---------- Footer ---------- */
.ps-footer { background: #0f1d33; color: #cbd5e4; }
.ps-footer a { color: #fff; text-decoration: none; }
.ps-footer a:hover { text-decoration: underline; }
.ps-footer h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }
.ps-footer ul { list-style: none; padding: 0; margin: 0; }
.ps-footer li { margin: .45rem 0; }
.ps-footer .ps-fine { border-top: 1px solid rgba(255, 255, 255, .12); color: #9aa9c0; }
.ps-footer .wp-block-site-title a span { color: var(--wp--preset--color--accent-2); }

/* ---------- Tombol ---------- */
.wp-block-button.is-style-outline > .wp-block-button__link { border-width: 1.5px; }
.ps-hero .wp-block-button.is-style-outline > .wp-block-button__link { color: #fff; border-color: rgba(255, 255, 255, .55); }
.ps-hero .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: rgba(255, 255, 255, .1); }

/* ---------- Paginasi ---------- */
.wp-block-query-pagination a, .wp-block-query-pagination .current {
	padding: .35rem .75rem; border-radius: 8px; text-decoration: none;
}
.wp-block-query-pagination .current { background: var(--wp--preset--color--accent-1); color: #fff; }

/* ---------- Tambahan Pustaka Skripsi ---------- */
.ps-steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.2rem; list-style: none; padding: 0; margin: 1.8rem 0 0; }
.ps-steps li { counter-increment: step; position: relative; padding: 1.3rem 1.3rem 1.2rem; border-radius: var(--ps-radius); background: var(--wp--preset--color--base); border: 1px solid var(--ps-line); }
.ps-steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; margin-bottom: .7rem; background: var(--wp--preset--color--accent-1); color: #fff; font-weight: 800; }
.ps-steps strong { display: block; margin-bottom: .25rem; }
.ps-steps span { display: block; font-size: .92rem; color: var(--wp--preset--color--accent-4); line-height: 1.5; }
.ps-steps a { text-decoration: none; }
.ps-jurusan { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.2rem; }
.ps-jurusan a { display: inline-block; padding: .45rem .95rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .93rem; background: var(--wp--preset--color--base); border: 1px solid var(--ps-line); color: var(--wp--preset--color--contrast); }
.ps-jurusan a:hover { border-color: var(--wp--preset--color--accent-1); color: var(--wp--preset--color--accent-1); }
.entry-content .ps-box { padding: 1rem 1.25rem; border-radius: 12px; background: var(--wp--preset--color--accent-5); border: 1px solid var(--ps-line); }
