/* ==========================================================================
   Hawaii Bulletin — main stylesheet
   Editorial news design. Minimal CSS, no framework.
   ========================================================================== */

:root {
	--hb-ink: #16232b;
	--hb-ink-soft: #55666f;
	--hb-line: #e3e6e8;
	--hb-bg: #ffffff;
	--hb-bg-alt: #f6f7f6;
	--hb-brand: #0b5c73;      /* deep ocean */
	--hb-brand-dark: #08424f;
	--hb-accent: #b4552d;     /* volcanic clay */
	--hb-radius: 4px;
	--hb-wrap: 1180px;
	--hb-narrow: 720px;
	--hb-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--hb-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--hb-bg);
	color: var(--hb-ink);
	font-family: var(--hb-sans);
	font-size: 1rem;
	line-height: 1.65;
}

img, svg, iframe, video { max-width: 100%; height: auto; display: block; }

a { color: var(--hb-brand); text-decoration: none; }
a:hover { color: var(--hb-brand-dark); text-decoration: underline; }

h1, h2, h3, h4, h5 {
	font-family: var(--hb-serif);
	line-height: 1.18;
	letter-spacing: -0.012em;
	margin: 0 0 .5rem;
	color: var(--hb-ink);
}

:focus-visible { outline: 2px solid var(--hb-brand); outline-offset: 2px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

.hb-skip {
	position: absolute; left: -9999px; top: 0; z-index: 100;
	background: var(--hb-brand); color: #fff; padding: .6rem 1rem;
}
.hb-skip:focus { left: 0; }

/* Layout ------------------------------------------------------------------ */
.hb-wrap { width: 100%; max-width: var(--hb-wrap); margin: 0 auto; padding: 0 1.25rem; }
.hb-wrap--narrow { max-width: var(--hb-narrow); }
.hb-main { display: block; }

/* Header ------------------------------------------------------------------ */
.hb-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--hb-bg);
	border-bottom: 1px solid var(--hb-line);
}
.hb-header.is-stuck { box-shadow: 0 1px 4px rgba(0,0,0,.06); }

.hb-header__inner {
	display: flex; align-items: center; gap: 1.25rem;
	min-height: 68px;
}

.hb-brand { margin-right: auto; }
.hb-brand__name {
	font-family: var(--hb-serif);
	font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em;
	color: var(--hb-ink); text-decoration: none;
}
.hb-brand__name:hover { color: var(--hb-brand); text-decoration: none; }
.custom-logo { max-height: 46px; width: auto; }

.hb-menu {
	display: flex; align-items: center; gap: 1.4rem;
	list-style: none; margin: 0; padding: 0;
}
.hb-menu li { position: relative; }
.hb-menu a {
	display: block; padding: .35rem 0;
	font-size: .9375rem; font-weight: 500; color: var(--hb-ink);
	text-transform: none; text-decoration: none;
}
.hb-menu a:hover { color: var(--hb-brand); text-decoration: none; }
.hb-menu .current-menu-item > a,
.hb-menu .current_page_item > a {
	color: var(--hb-brand);
	box-shadow: inset 0 -2px 0 var(--hb-brand);
}

/* Dropdown (depth 2) */
.hb-menu .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 200px;
	background: #fff; border: 1px solid var(--hb-line);
	list-style: none; margin: 0; padding: .35rem 0;
	display: none; z-index: 20;
}
.hb-menu li:hover > .sub-menu,
.hb-menu li:focus-within > .sub-menu { display: block; }
.hb-menu .sub-menu a { padding: .45rem 1rem; }

.hb-header__actions { display: flex; align-items: center; gap: .35rem; }

.hb-iconbtn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; padding: 0;
	background: none; border: 1px solid transparent; border-radius: var(--hb-radius);
	color: var(--hb-ink); cursor: pointer;
}
.hb-iconbtn:hover { background: var(--hb-bg-alt); }

.hb-burger { display: none; flex-direction: column; gap: 4px; }
.hb-burger span {
	display: block; width: 20px; height: 2px; background: var(--hb-ink);
	transition: transform .18s ease, opacity .18s ease;
}
.hb-burger.is-active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hb-burger.is-active span:nth-child(2) { opacity: 0; }
.hb-burger.is-active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.hb-search { border-top: 1px solid var(--hb-line); background: var(--hb-bg-alt); padding: .9rem 0; }
.hb-searchform { display: flex; gap: .5rem; }
.hb-searchform input[type="search"] { flex: 1 1 auto; }

/* Forms ------------------------------------------------------------------- */
input[type="text"], input[type="email"], input[type="search"], input[type="url"], textarea {
	width: 100%; padding: .6rem .75rem;
	font: inherit; color: var(--hb-ink);
	background: #fff; border: 1px solid var(--hb-line); border-radius: var(--hb-radius);
}
textarea { resize: vertical; }
label { display: block; font-size: .875rem; font-weight: 500; margin-bottom: .3rem; }

.hb-btn, .hb-form button, .comment-form input[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center;
	padding: .7rem 1.25rem;
	font-family: var(--hb-sans); font-size: .9375rem; font-weight: 600;
	color: #fff; background: var(--hb-brand);
	border: 0; border-radius: var(--hb-radius); cursor: pointer;
	text-decoration: none;
}
.hb-btn:hover, .hb-form button:hover, .comment-form input[type="submit"]:hover {
	background: var(--hb-brand-dark); color: #fff; text-decoration: none;
}
.hb-btn--sm { padding: .55rem .9rem; font-size: .875rem; }

.hb-notice { padding: .8rem 1rem; border-radius: var(--hb-radius); font-size: .9375rem; }
.hb-notice--success { background: #eaf4ee; border: 1px solid #bcdcc7; }
.hb-notice--error { background: #fdeeea; border: 1px solid #f0c5b8; }

/* Shared bits ------------------------------------------------------------- */
.hb-cat {
	display: inline-block; margin-bottom: .5rem;
	font-size: .6875rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
	color: var(--hb-accent); text-decoration: none;
}
.hb-cat:hover { color: var(--hb-accent); text-decoration: underline; }

.hb-eyebrow {
	margin: 0 0 .35rem;
	font-size: .6875rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
	color: var(--hb-ink-soft);
}

.hb-meta {
	display: flex; flex-wrap: wrap; gap: .75rem;
	font-size: .8125rem; color: var(--hb-ink-soft);
}
.hb-meta a { color: var(--hb-ink-soft); }

.hb-more {
	display: inline-block; margin-top: .25rem;
	font-size: .8125rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
	color: var(--hb-brand); text-decoration: none;
}
.hb-more:hover { text-decoration: underline; }

.hb-img { width: 100%; height: 100%; object-fit: cover; }
.hb-img--placeholder {
	display: block; width: 100%; height: 100%;
	background: linear-gradient(180deg, #e9edee, #dde3e4);
}

.hb-crumbs {
	padding: 1.25rem 0 0;
	font-size: .8125rem; color: var(--hb-ink-soft);
}
.hb-crumbs a { color: var(--hb-ink-soft); }

.hb-empty { padding: 3rem 0; color: var(--hb-ink-soft); }

/* Hero slider ------------------------------------------------------------- */
.hb-hero { position: relative; overflow: hidden; background: #0d1c22; }
.hb-hero__track { display: flex; transition: transform .5s ease; }
.hb-slide { position: relative; flex: 0 0 100%; min-width: 100%; }

.hb-slide__media { position: relative; aspect-ratio: 16 / 8; }
.hb-slide__media::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(9,20,25,.88) 0%, rgba(9,20,25,.35) 45%, rgba(9,20,25,.05) 75%);
}

.hb-slide__content {
	position: absolute; left: 0; right: 0; bottom: 0;
	padding: 0 0 3rem;
	color: #fff;
}
.hb-slide__content .hb-cat { color: #ffd9a8; }
.hb-slide__content .hb-wrap { max-width: var(--hb-wrap); }
.hb-slide__title {
	max-width: 44ch; margin: 0 0 .6rem;
	font-size: clamp(1.55rem, 3.6vw, 2.9rem); font-weight: 700; color: #fff;
}
.hb-slide__title a { color: #fff; text-decoration: none; }
.hb-slide__title a:hover { text-decoration: underline; }
.hb-slide__excerpt {
	max-width: 62ch; margin: 0 0 1.1rem;
	color: rgba(255,255,255,.86); font-size: 1rem;
}
.hb-slide__content .hb-btn { background: #fff; color: var(--hb-ink); }
.hb-slide__content .hb-btn:hover { background: #f0f0ee; color: var(--hb-ink); }

.hb-hero__arrow {
	position: absolute; top: 50%; transform: translateY(-50%);
	display: inline-flex; align-items: center; justify-content: center;
	width: 42px; height: 42px; padding: 0;
	color: #fff; background: rgba(12,24,30,.5);
	border: 1px solid rgba(255,255,255,.28); border-radius: 50%;
	cursor: pointer;
}
.hb-hero__arrow:hover { background: rgba(12,24,30,.8); }
.hb-hero__arrow--prev { left: 1rem; }
.hb-hero__arrow--next { right: 1rem; }

.hb-hero__dots {
	position: absolute; bottom: 1.1rem; left: 0; right: 0;
	display: flex; justify-content: center; gap: .45rem;
}
.hb-dot {
	width: 8px; height: 8px; padding: 0;
	background: rgba(255,255,255,.45); border: 0; border-radius: 50%; cursor: pointer;
}
.hb-dot.is-active { background: #fff; width: 22px; border-radius: 999px; }

/* Sections ---------------------------------------------------------------- */
.hb-section { padding: 3rem 0; }
.hb-section--cat { border-top: 1px solid var(--hb-line); }
.hb-section--related { border-top: 1px solid var(--hb-line); margin-top: 3rem; background: var(--hb-bg-alt); }

.hb-section__head {
	display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
	padding-bottom: .75rem; margin-bottom: 1.75rem;
	border-bottom: 2px solid var(--hb-ink);
}
.hb-section__title { margin: 0; font-size: 1.375rem; }
.hb-viewall {
	font-size: .8125rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
	white-space: nowrap;
}

/* Page heads -------------------------------------------------------------- */
.hb-pagehead { padding: 2.25rem 0 2rem; }
.hb-pagehead__title { margin: 0; font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.hb-pagehead__desc { margin: .75rem 0 0; max-width: 68ch; color: var(--hb-ink-soft); }

/* Grid + cards ------------------------------------------------------------ */
.hb-grid { display: grid; gap: 2rem; }
.hb-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.hb-card { display: flex; flex-direction: column; }
.hb-card__media {
	display: block; aspect-ratio: 16 / 10; overflow: hidden;
	background: var(--hb-bg-alt); border-radius: var(--hb-radius); margin-bottom: .9rem;
}
.hb-card__media .hb-img { transition: transform .35s ease; }
.hb-card:hover .hb-card__media .hb-img { transform: scale(1.03); }
.hb-card__title { margin: 0 0 .45rem; font-size: 1.25rem; }
.hb-card__title a { color: var(--hb-ink); text-decoration: none; }
.hb-card__title a:hover { color: var(--hb-brand); }
.hb-card__excerpt { margin: 0 0 .6rem; color: var(--hb-ink-soft); font-size: .9375rem; }
.hb-card__body > .hb-meta { margin-bottom: .5rem; }

/* Category layout: lead + list ------------------------------------------- */
.hb-catlayout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 2.5rem; }
.hb-catlayout__lead .hb-card__title { font-size: 1.7rem; }
.hb-catlayout__list { display: flex; flex-direction: column; gap: 1.25rem; }

.hb-item { display: grid; grid-template-columns: 116px 1fr; gap: 1rem; align-items: start; }
.hb-item + .hb-item { border-top: 1px solid var(--hb-line); padding-top: 1.25rem; }
.hb-item__media {
	display: block; aspect-ratio: 3 / 2; overflow: hidden;
	background: var(--hb-bg-alt); border-radius: var(--hb-radius);
}
.hb-item__body .hb-cat { margin-bottom: .3rem; }
.hb-item__title { margin: 0 0 .3rem; font-size: 1.0625rem; line-height: 1.3; }
.hb-item__title a { color: var(--hb-ink); text-decoration: none; }
.hb-item__title a:hover { color: var(--hb-brand); }

/* Categories page --------------------------------------------------------- */
.hb-cardcat {
	padding: 1.5rem; border: 1px solid var(--hb-line); border-radius: var(--hb-radius);
	background: #fff;
}
.hb-cardcat__title { margin: 0 0 .4rem; font-size: 1.25rem; }
.hb-cardcat__title a { color: var(--hb-ink); text-decoration: none; }
.hb-cardcat__title a:hover { color: var(--hb-brand); }
.hb-cardcat__desc { margin: 0 0 .5rem; color: var(--hb-ink-soft); font-size: .9375rem; }
.hb-cardcat__count { margin: 0 0 .75rem; font-size: .8125rem; color: var(--hb-ink-soft); }

/* Article ---------------------------------------------------------------- */
.hb-article__head { padding: 1.75rem 0 1.5rem; }
.hb-article__title { margin: 0 0 .75rem; font-size: clamp(1.9rem, 4.2vw, 2.75rem); }
.hb-article__lead {
	margin: 0 0 1rem; font-size: 1.125rem; color: var(--hb-ink-soft);
	font-family: var(--hb-serif);
}
.hb-article__figure { margin: 0 0 2rem; }
.hb-article__figure .hb-img { border-radius: var(--hb-radius); }
.hb-article__caption { margin-top: .5rem; font-size: .8125rem; color: var(--hb-ink-soft); }

.hb-content { font-size: 1.0625rem; line-height: 1.78; }
.hb-content > * + * { margin-top: 1.35rem; }
.hb-content h2 { margin-top: 2.25rem; font-size: 1.6rem; }
.hb-content h3 { margin-top: 1.85rem; font-size: 1.3rem; }
.hb-content img, .hb-content figure { border-radius: var(--hb-radius); }
.hb-content figcaption { font-size: .8125rem; color: var(--hb-ink-soft); }
.hb-content blockquote {
	margin: 2rem 0; padding: .25rem 0 .25rem 1.25rem;
	border-left: 3px solid var(--hb-brand);
	font-family: var(--hb-serif); font-size: 1.2rem;
}
.hb-content ul, .hb-content ol { padding-left: 1.35rem; }
.hb-content li + li { margin-top: .4rem; }
.hb-content pre {
	padding: 1rem; overflow-x: auto;
	background: var(--hb-bg-alt); border-radius: var(--hb-radius); font-size: .9rem;
}
.hb-content table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.hb-content th, .hb-content td { padding: .6rem; border: 1px solid var(--hb-line); text-align: left; }
.hb-content .alignwide { max-width: none; }

.hb-tags { margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.hb-tags a {
	padding: .3rem .65rem; font-size: .8125rem;
	background: var(--hb-bg-alt); border-radius: 999px; color: var(--hb-ink-soft);
	text-decoration: none;
}
.hb-tags a:hover { background: #eceeed; }

.hb-prevnext {
	display: flex; justify-content: space-between; gap: 1.5rem;
	margin: 2.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--hb-line);
	font-size: .9375rem;
}
.hb-prevnext__item--next { text-align: right; }

.hb-linkpages { margin-top: 1.5rem; font-size: .9375rem; }

/* Contact ---------------------------------------------------------------- */
.hb-contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3rem; padding-bottom: 3.5rem; }
.hb-contact__subtitle { margin: 1.75rem 0 .75rem; font-size: 1.2rem; }
.hb-contact__subtitle:first-child { margin-top: 0; }
.hb-contact__list { list-style: none; margin: 0; padding: 0; font-size: .9375rem; }
.hb-contact__list li + li { margin-top: .5rem; }
.hb-form p { margin: 0 0 1rem; }

.hb-social { display: flex; flex-wrap: wrap; gap: .75rem; list-style: none; margin: 0; padding: 0; }
.hb-social a { font-size: .9375rem; }

/* Comments --------------------------------------------------------------- */
.hb-comments { margin: 3rem 0 0; padding-top: 2rem; border-top: 1px solid var(--hb-line); }
.hb-comments__title { font-size: 1.3rem; }
.hb-commentlist, .hb-commentlist .children { list-style: none; margin: 0; padding: 0; }
.hb-commentlist .children { padding-left: 1.5rem; }
.hb-commentlist li { padding: 1.25rem 0; border-bottom: 1px solid var(--hb-line); }
.hb-commentlist .comment-meta { font-size: .8125rem; color: var(--hb-ink-soft); margin-bottom: .4rem; }
.hb-commentlist .avatar { border-radius: 50%; float: left; margin-right: .75rem; }
.comment-form { margin-top: 1.5rem; }
.comment-form p { margin: 0 0 1rem; }
.comment-respond .comment-reply-title { font-size: 1.2rem; }

/* Pagination ------------------------------------------------------------- */
.pagination, .comments-pagination { margin: 3rem 0; }
.pagination .nav-links, .comments-pagination .nav-links {
	display: flex; flex-wrap: wrap; gap: .4rem; align-items: center;
}
.pagination .page-numbers, .comments-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; height: 40px; padding: 0 .7rem;
	border: 1px solid var(--hb-line); border-radius: var(--hb-radius);
	font-size: .9375rem; color: var(--hb-ink); text-decoration: none;
}
.pagination .page-numbers:hover { background: var(--hb-bg-alt); text-decoration: none; }
.pagination .page-numbers.current {
	background: var(--hb-ink); border-color: var(--hb-ink); color: #fff;
}

/* Footer ----------------------------------------------------------------- */
.hb-footer { margin-top: 3rem; background: #0d1c22; color: rgba(255,255,255,.8); }
.hb-footer a { color: #fff; }
.hb-footer__grid {
	display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem;
	padding-top: 3rem; padding-bottom: 2.5rem;
}
.hb-footer__name { margin: 0 0 .4rem; font-family: var(--hb-serif); font-size: 1.35rem; color: #fff; }
.hb-footer__desc { margin: 0; font-size: .9375rem; max-width: 42ch; }
.hb-footer__menu, .hb-footer .hb-social { list-style: none; margin: 0; padding: 0; }
.hb-footer__menu li + li { margin-top: .5rem; }
.hb-footer__menu a { font-size: .9375rem; text-decoration: none; }
.hb-footer .widget-title { font-size: 1rem; color: #fff; }
.hb-footer__bottom {
	padding: 1.1rem 1.25rem; border-top: 1px solid rgba(255,255,255,.14);
	font-size: .8125rem;
}
.hb-footer__bottom p { margin: 0; }

.hb-404 { padding: 4rem 0; }
.hb-404 .hb-searchform { max-width: 420px; margin: 1.5rem 0; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 980px) {
	.hb-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hb-catlayout { grid-template-columns: 1fr; gap: 2rem; }
	.hb-contact { grid-template-columns: 1fr; gap: 2.25rem; }
	.hb-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
	.hb-burger { display: inline-flex; }

	.hb-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		background: #fff; border-bottom: 1px solid var(--hb-line);
		display: none;
	}
	.hb-nav.is-open { display: block; }
	.hb-menu {
		flex-direction: column; align-items: stretch; gap: 0;
		padding: .5rem 1.25rem 1rem;
	}
	.hb-menu li { border-bottom: 1px solid var(--hb-line); }
	.hb-menu a { padding: .8rem 0; font-size: 1rem; }
	.hb-menu .current-menu-item > a { box-shadow: none; }
	.hb-menu .sub-menu { position: static; display: block; border: 0; padding: 0 0 .5rem .9rem; }

	.hb-slide__media { aspect-ratio: 4 / 3; }
	.hb-slide__content { padding-bottom: 2.75rem; }
	.hb-hero__arrow { width: 36px; height: 36px; }
	.hb-hero__arrow--prev { left: .5rem; }
	.hb-hero__arrow--next { right: .5rem; }

	.hb-section { padding: 2.25rem 0; }
}

@media (max-width: 600px) {
	.hb-grid--3 { grid-template-columns: 1fr; gap: 1.75rem; }
	.hb-footer__grid { grid-template-columns: 1fr; gap: 1.75rem; }
	.hb-slide__excerpt { display: none; }
	.hb-item { grid-template-columns: 96px 1fr; gap: .85rem; }
	.hb-prevnext { flex-direction: column; }
	.hb-prevnext__item--next { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.hb-hero__track { transition: none; }
	.hb-card__media .hb-img { transition: none; }
}
