/*
Theme Name: Niutao Red & White
Description: A visual editing theme for the Niutao Falekaupule website.
Version: 1.1.0
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: niutao-blue-white
*/

:is(.niutao-header-inner,.niutao-footer-inner,.niutao-hero,.niutao-page-title,.niutao-section,.niutao-band) {
  box-sizing: border-box;
  padding-inline: clamp(1.2rem,5vw,3rem);
}
.niutao-shell-header { border-bottom: 1px solid #efd4da; }
.niutao-shell-header:has(+ main) + main, .niutao-shell-footer { margin-block-start: 0; }
.niutao-header-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
  padding-block: 1rem;
}
.niutao-header-inner > *, .niutao-brand > * { margin-block: 0 !important; }
.niutao-brand { color: #680f20; }
.niutao-brand .wp-block-site-title { font-family: Georgia, serif; font-size: 1.25rem; font-weight: 700; }
.niutao-brand .wp-block-site-title a { color: inherit; text-decoration: none; }
.niutao-brand img { max-height: 54px; object-fit: contain; }
.niutao-header-inner .wp-block-navigation a { font-weight: 650; }
.niutao-header-inner .wp-block-navigation a:hover { text-decoration: underline; text-underline-offset: .3em; }
.niutao-hero, .niutao-page-title {
  background: linear-gradient(120deg,#680f20,#ab1833);
  color: #fff;
  padding-block: clamp(2.5rem,9vw,7rem);
}
.niutao-page-title { padding-block: clamp(2rem,5vw,4rem); }
.niutao-hero h1, .niutao-page-title h1 { font-size: clamp(2.3rem,6.5vw,5rem); }
.niutao-hero .wp-block-button__link { background: #fff; color: #680f20; }
.niutao-section, .niutao-band { padding-block: clamp(2rem,5vw,4.5rem); }
.niutao-band { background: #fff0f2; }
.niutao-card { background: #fff; border: 1px solid #efd4da; border-top: 4px solid #ab1833; border-radius: .4rem; height: 100%; padding: 1.35rem; }
.niutao-shell-footer { background: #680f20; color: #fff; }
.niutao-footer-inner { padding-block: 1.5rem; }
.niutao-footer-inner .wp-block-button__link { background: #fff0f2; color: #680f20; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* Existing Niutao HTML pages have their own header, title and footer. */
body:has(.wp-block-post-content .nf) :is(.niutao-shell-header,.niutao-shell-footer,.niutao-page-title) { display: none; }
.wp-site-blocks main:has(.wp-block-post-content .nf),
.wp-site-blocks .wp-block-post-content:has(.nf) { margin: 0; max-width: none; }
.wp-site-blocks .wp-block-post-content > .nf { max-width: none; }
