/*
  Blog pages on ithawaii.ai. The shared renderer (shared/src/blog/render.js) writes the markup with the class
  names the older sites' stylesheets use; this file gives those classes this site's look. Everything is scoped
  to .blog-page (layouts/shell/page.html), so nothing here touches other pages.
*/

/* The renderer starts some blocks hidden for scroll animations this site doesn't run. */
.blog-page [style*="opacity:0"] { opacity: 1 !important; transform: none !important; }

.blog-page .section { padding-block: 0; }
.blog-page .background-color-light-grey { background: var(--sunken); }
.blog-page .padding-global { padding-inline: var(--gutter); }
.blog-page .container-large { max-width: var(--wide); margin-inline: auto; }
.blog-page .padding-section-medium { padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.blog-page .padding-section-large { padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
.blog-page .padding-top-0 { padding-top: 0; }
.blog-page .max-width-large { max-width: 760px; }
.blog-page .align-center { margin-inline: auto; }
.blog-page .text-align-center { text-align: center; }
.blog-page .spacer-xxs { height: 6px; }
.blog-page .spacer-small { height: 10px; }
.blog-page .spacer-medium { height: 18px; }
.blog-page .spacer-large { height: 28px; }
.blog-page .spacer-xl { height: 36px; }
.blog-page .text-color-black, .blog-page .text-size-regular { color: var(--text-2); }
.blog-page .text-size-large { color: var(--muted); font-size: var(--fs-sm); }
.blog-page .text-size-small { font-size: var(--fs-sm); }
.blog-page .text-weight-semibold { font-weight: 600; color: var(--heading); }
.blog-page .text-color-navy { color: var(--brand); }
.blog-page .heading-style-h3 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); }
.blog-page .heading-style-h5 { font-size: 1.125rem; line-height: 1.35; }
.blog-page .heading-style-h2 { font-size: var(--fs-h2); }
.blog-page a { text-decoration: none; }
.blog-page img { border-radius: var(--radius); }

/* List page: the featured post and the next three */
.blog-page .w-layout-grid._2-column-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; }
.blog-page .blog-item-big-tile, .blog-page .blog-item-small-tile {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-card); color: inherit;
  transition: box-shadow var(--t) var(--ease), transform var(--t) var(--ease);
}
.blog-page .blog-item-big-tile:hover, .blog-page .blog-item-small-tile:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.blog-page .image-wrapper-large img, .blog-page .image-wrapper-small img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.blog-page .image-wrapper-large { aspect-ratio: 16 / 9; }
.blog-page .card-content-large { padding: 22px 24px 26px; }
.blog-page .blog-list-horizontal { display: grid; gap: 20px; }
.blog-page .blog-item-small-tile { flex-direction: row; }
.blog-page .image-wrapper-small { flex: 0 0 38%; aspect-ratio: 4 / 3; }
.blog-page .card-content-small { padding: 16px 18px; }

/* Category tabs and the grid of all posts */
.blog-page .tab-menu-wrapper, .blog-page .tab-menu { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-page .tab-link { display: inline-flex; padding: 8px 16px; border-radius: 999px; background: var(--white); box-shadow: 0 0 0 1px var(--border); color: var(--text-2); font-size: var(--fs-sm); font-weight: 600; }
.blog-page .tab-link:hover, .blog-page .tab-link.w--current { background: var(--brand); color: #fff; box-shadow: none; }
.blog-page ._3-column-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
.blog-page .blog-item-vertical { display: flex; flex-direction: column; color: inherit; }
.blog-page .blog-image-wrapper-3-column-grid { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); background: var(--mist-100); }
.blog-page .blog-image { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform 400ms var(--ease); }
.blog-page .blog-item-vertical:hover .blog-image { transform: scale(1.03); }
.blog-page .blog-meta-wrapper { margin-top: 14px; }
.blog-page .eyebrow { margin: 0; color: var(--muted); font-size: var(--fs-sm); font-weight: 600; }
.blog-page .category-tag { display: inline-flex; padding: 3px 10px; border-radius: 999px; background: var(--indigo-50); color: var(--brand); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.blog-page .blog-title-link h3 { color: var(--heading); }
.blog-page .blog-title-link:hover h3 { color: var(--brand); }
.blog-page .testimonial-customer-image { width: 40px; height: 40px; margin-top: 12px; border-radius: 50%; object-fit: cover; background: var(--indigo-50); }

/* Pagination */
.blog-page .w-pagination-wrapper { display: flex; justify-content: center; gap: 12px; margin-top: 36px; }
.blog-page .w-pagination-previous, .blog-page .w-pagination-next { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 10px; box-shadow: 0 0 0 1px var(--brand); color: var(--brand); font-weight: 700; }
.blog-page .w-pagination-previous svg, .blog-page .w-pagination-next svg { width: 12px; height: 12px; }

/* A post */
.blog-page .header { background: linear-gradient(180deg, var(--indigo-50), var(--white)); }
.blog-page .blog-post-header-title-wrapper h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.125rem); }
.blog-page .blog-post-header-image-wrapper-40-padding { max-width: 960px; }
.blog-page .blog-post-header-image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); box-shadow: 0 30px 60px -30px rgb(28 26 43 / 0.4); }
.blog-page .blog-post-header-author-wrapper { margin-top: 24px; }
.blog-page .checkmark-text { color: var(--muted); font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.blog-page .blog-author-wrapper { display: flex; align-items: center; gap: 12px; }
.blog-page .blog-author-wrapper .testimonial-customer-image { width: 48px; height: 48px; margin: 0; }
.blog-page .blog-post-content-wrapper { max-width: var(--read); }
.blog-page .rte { color: var(--text); font-size: 1.0625rem; line-height: 1.75; }
.blog-page .rte > * + * { margin-top: 1.1em; }
.blog-page .rte h2 { margin-top: 2em; font-size: 1.625rem; }
.blog-page .rte h3 { margin-top: 1.6em; font-size: 1.25rem; }
.blog-page .rte a { color: var(--brand); text-decoration: underline; }
.blog-page .rte ul, .blog-page .rte ol { padding-left: 1.4em; }
.blog-page .rte li + li { margin-top: 0.4em; }
.blog-page .rte img { margin-block: 1.5em; border-radius: var(--radius-lg); }
.blog-page .rte blockquote { margin: 1.5em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent-400); color: var(--heading); font-weight: 600; }
.blog-page .rte table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.blog-page .rte th, .blog-page .rte td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.blog-page .blog-video-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-lg); background: #000; }
.blog-page .blog-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.blog-page .blog-video-caption { margin-top: 8px; color: var(--muted); font-size: var(--fs-sm); }
.blog-page .cards .blog-item-vertical { padding-bottom: 6px; }

@media (max-width: 900px) {
  .blog-page .w-layout-grid._2-column-grid { grid-template-columns: 1fr; }
  .blog-page ._3-column-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .blog-page ._3-column-grid { grid-template-columns: 1fr; }
  .blog-page .blog-item-small-tile { flex-direction: column; }
  .blog-page .image-wrapper-small { flex: none; aspect-ratio: 16 / 9; }
}
