/*
 * SENPak theme styles (non-critical). Section styles come from SENPak HQ blocks.
 */
a { color: var(--sp-primary); }
:focus-visible { outline: 2px solid var(--sp-blue); outline-offset: 2px; }
.sp-locked { overflow: hidden; }
button, input, select, textarea { font: inherit; }

/* Header details */
.sp-nav__btn:hover, .sp-nav__item:focus-within > .sp-nav__btn, .sp-nav__btn[aria-expanded="true"] { background: var(--sp-soft); }
.sp-nav__btn[aria-current="page"], .sp-nav__btn[data-current] { color: var(--sp-primary); }
.sp-nav__btn[aria-expanded="true"] .sp-ico { transform: rotate(180deg); }
.sp-dd { position: absolute; top: calc(100% + 8px); inset-inline-start: -8px; z-index: 70; min-width: 240px; padding: 10px; background: #fff; border: 1px solid var(--sp-line); border-radius: 12px; box-shadow: 0 10px 28px rgba(10, 38, 34, .1); visibility: hidden; opacity: 0; transform: translateY(-4px); transition: opacity .18s, transform .18s, visibility 0s .18s; }
.sp-dd::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.sp-dd ul { list-style: none; margin: 0; padding: 0; }
.sp-dd a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--sp-ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.sp-dd a:hover, .sp-dd a[aria-current="page"] { background: var(--sp-soft); color: var(--sp-primary); }
.sp-nav__btn[aria-expanded="true"] + .sp-dd { visibility: visible; opacity: 1; transform: none; transition: opacity .18s, transform .18s; }
@media (hover: hover) and (min-width: 1181px) {
	.sp-nav__item.has-children:hover > .sp-dd { visibility: visible; opacity: 1; transform: none; transition: opacity .18s, transform .18s; }
	.sp-nav__item.has-children:hover > .sp-nav__btn { background: var(--sp-soft); }
}
.sp-icon-btn:hover { border-color: var(--sp-ink); }
.sp-btn--accent:hover { background: color-mix(in srgb, var(--sp-accent) 88%, #fff); }
.sp-btn--primary:hover { background: color-mix(in srgb, var(--sp-primary) 88%, #000); color: #fff; }

/* Drawer */
.sp-drawer { position: fixed; inset: 0; z-index: 100; }
.sp-drawer__scrim { position: absolute; inset: 0; background: rgba(6, 26, 23, .5); }
.sp-drawer__panel { position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: min(360px, 88vw); display: flex; flex-direction: column; gap: 6px; padding: 18px 20px calc(24px + env(safe-area-inset-bottom)); background: #fff; overflow-y: auto; overscroll-behavior: contain; }
.sp-drawer__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.sp-drawer__group { border-bottom: 1px solid var(--sp-line); }
.sp-drawer__group summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 15px 4px; font: 600 17px var(--sp-font-head); cursor: pointer; }
.sp-drawer__group summary::-webkit-details-marker { display: none; }
.sp-drawer__group[open] summary .sp-ico { transform: rotate(180deg); }
.sp-drawer__group a { display: block; padding: 9px 12px; color: var(--sp-slate); text-decoration: none; font-size: 15.5px; }
.sp-drawer__group a:last-child { margin-bottom: 10px; }
.sp-drawer__link { display: block; padding: 15px 4px; border-bottom: 1px solid var(--sp-line); font: 600 17px var(--sp-font-head); color: var(--sp-ink); text-decoration: none; }
.sp-drawer__cta { margin-top: 18px; }

/* Footer */
.sp-footer { background: #0A2420; color: rgba(255, 255, 255, .74); }
.sp-footer .sp-shell { padding-top: 64px; padding-bottom: 28px; }
.sp-footer a { color: inherit; text-decoration: none; }
.sp-footer a:hover { color: #fff; }
.sp-footer__grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; margin-bottom: 48px; }
.sp-footer .sp-logo { display: inline-flex; background: #fff; border-radius: 12px; padding: 10px 16px; margin-bottom: 22px; }
.sp-footer__about p { margin: 0; font-size: 15px; max-width: 340px; }
.sp-footer__col h2 { margin: 0 0 16px; font: 600 16px var(--sp-font-head); color: #fff; }
.sp-footer__col ul, .sp-footer__social { list-style: none; margin: 0; padding: 0; }
.sp-footer__col ul { display: flex; flex-direction: column; gap: 11px; font-size: 15px; }
.sp-footer__social { display: flex; gap: 10px; margin-top: 22px; }
.sp-footer__social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .22); border-radius: 8px; }
.sp-footer__social a:hover { background: rgba(255, 255, 255, .08); }
.sp-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13.5px; }
.sp-footer__bottom p { margin: 0; }
.sp-footer__bottom nav { display: flex; gap: 16px; flex-wrap: wrap; }
.sp-footer__credit { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .08); text-align: center; font-size: 13px; color: rgba(255, 255, 255, .7); }
.sp-credit { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.sp-credit img { display: block; height: 34px; width: auto; opacity: .92; }
.sp-credit:hover img { opacity: 1; }
.sp-footer .sp-logo .sp-logo__img { height: 40px; }
.sp-drawer__top .sp-logo__img { height: 34px; }

/* Plain pages, posts, archives */
.sp-entry__head { background: var(--sp-soft); padding: 40px 0 34px; border-bottom: 1px solid var(--sp-line); }
.sp-entry__title { margin: 0; font: 600 clamp(32px, 4.4vw, 50px)/1.1 var(--sp-font-head); letter-spacing: -.03em; }
.sp-entry__lead { margin-top: 10px; color: var(--sp-slate); font-size: 18px; max-width: 720px; }
.sp-entry__meta { margin: 0 0 10px; color: var(--sp-slate); font-size: 14px; }
.sp-entry__meta a { color: var(--sp-primary); }
.sp-entry__body { padding-top: 48px; padding-bottom: 80px; }
.sp-crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; font-size: 14px; color: var(--sp-slate); }
.sp-crumbs a { color: var(--sp-primary); font-weight: 600; text-decoration: none; }
.sp-prose { max-width: 760px; font-size: 17px; line-height: 1.75; }
.sp-prose > * { margin-block: 0 1.1em; }
.sp-prose h2, .sp-prose h3, .sp-prose h4 { font-family: var(--sp-font-head); font-weight: 600; line-height: 1.25; letter-spacing: -.01em; margin-top: 1.8em; }
.sp-prose h2 { font-size: 28px; }
.sp-prose h3 { font-size: 22px; }
.sp-prose img { border-radius: 8px; }
.sp-prose blockquote { margin-inline: 0; padding: 4px 0 4px 20px; border-inline-start: 3px solid var(--sp-primary); color: var(--sp-slate); }
.sp-prose ul, .sp-prose ol { padding-inline-start: 1.3em; }
.sp-prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.sp-prose th, .sp-prose td { padding: 10px 12px; border-bottom: 1px solid var(--sp-line); text-align: start; }
.sp-prose mark.sp-confirm, .sp-confirm { background: #FFF0CC; color: #7A4F00; padding: 0 4px; border-radius: 4px; font-size: .85em; font-weight: 600; }
.sp-entry__img { margin-bottom: 28px; }
.sp-entry__tags { color: var(--sp-slate); font-size: 14px; }
.sp-page-links { display: flex; gap: 8px; font-weight: 600; }
.sp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sp-postcard { display: flex; flex-direction: column; border: 1px solid var(--sp-line); border-radius: 12px; overflow: hidden; background: #fff; }
.sp-postcard__img img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.sp-postcard__body { padding: 20px; }
.sp-postcard h2 { margin: 0 0 8px; font: 600 19px/1.3 var(--sp-font-head); }
.sp-postcard h2 a { color: var(--sp-ink); text-decoration: none; }
.sp-postcard h2 a:hover { color: var(--sp-primary); }
.sp-postcard p { margin: 0; color: var(--sp-slate); font-size: 15px; }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 32px; }
.nav-links .page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--sp-line); border-radius: 8px; color: var(--sp-ink); text-decoration: none; }
.nav-links .page-numbers.current { background: var(--sp-ink); border-color: var(--sp-ink); color: #fff; }
.post-navigation .nav-links { justify-content: space-between; }
.post-navigation .nav-links a { color: var(--sp-primary); font-weight: 600; text-decoration: none; }
.sp-404 { padding: 96px 0 120px; }
.sp-404 .sp-eyebrow { margin: 0 0 12px; font: 600 13px var(--sp-font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--sp-primary); }
.sp-404__search { display: flex; gap: 10px; max-width: 560px; margin: 28px 0 22px; }
.sp-404__search input { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid #C9D6D0; border-radius: 8px; font-size: 16px; }
.sp-404 .sp-link { display: inline-flex; gap: 6px; align-items: center; font: 600 15px var(--sp-font-head); color: var(--sp-primary); text-decoration: none; }
.search-form { display: flex; gap: 8px; margin-bottom: 20px; }
.search-form label { flex: 1; }
.search-form .search-field { width: 100%; padding: 11px 14px; border: 1px solid #C9D6D0; border-radius: 8px; font-size: 16px; }
.search-form .search-submit { padding: 11px 18px; border: 0; border-radius: 8px; background: var(--sp-ink); color: #fff; font-weight: 600; cursor: pointer; }
.sp-comments { max-width: 760px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--sp-line); }
.sp-comments h2 { font: 600 22px var(--sp-font-head); }
.sp-comments__list { list-style: none; padding: 0; }
.sp-comments__list .comment-body { padding: 16px 0; border-bottom: 1px solid var(--sp-line); }
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea { width: 100%; padding: 11px 14px; border: 1px solid #C9D6D0; border-radius: 8px; font-size: 16px; }
.comment-form .submit { padding: 12px 20px; border: 0; border-radius: var(--sp-r-btn); background: var(--sp-primary); color: #fff; font-weight: 600; cursor: pointer; }

/* WordPress core classes */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption, .wp-block-image figcaption { max-width: 100%; color: var(--sp-slate); font-size: 14px; }
.wp-caption-text, .gallery-caption { font-size: 14px; color: var(--sp-slate); }
.sticky .sp-postcard__body { border-top: 3px solid var(--sp-accent); }
.bypostauthor > .comment-body .fn { color: var(--sp-primary); }

/* Mobile tab bar */
@media (max-width: 720px) {
	body.senpak { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
	.sp-tabbar { display: block; position: fixed; bottom: 0; inset-inline: 0; z-index: 65; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--sp-line); }
	.sp-tabbar__in { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); }
	.sp-tabbar .sp-pill { background: #E6F3EC; }
	.sp-tabbar a { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 8px; font-size: 11px; font-weight: 600; color: var(--sp-slate); text-decoration: none; transition: color .25s; }
	.sp-tabbar a[aria-current="page"] { color: var(--sp-primary); }
	.sp-tabbar__in:not(.has-pill) a[aria-current="page"] { background: #E6F3EC; }
	.sp-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
	.sp-footer__about { grid-column: span 2; }
	.sp-footer .sp-shell { padding-top: 48px; }
	.sp-entry__body { padding-top: 32px; padding-bottom: 56px; }
	.sp-cards { grid-template-columns: 1fr; }
	.sp-404 { padding: 56px 0 72px; }
	.sp-404__search { flex-direction: column; }
}
@media (min-width: 721px) and (max-width: 1100px) {
	.sp-footer__grid { grid-template-columns: repeat(3, 1fr); }
	.sp-footer__about { grid-column: span 3; }
	.sp-cards { grid-template-columns: 1fr 1fr; }
}
.is-preview .sp-floating { display: none; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
	.sp-utility, .sp-header, .sp-tabbar, .sp-floating, .sp-footer__social { display: none !important; }
}
