/* Same geometry and typography as the approved wedding-CZ header. */
[data-tih-hidden-old-header="1"]{display:none!important}
header.tih-unified-header {
  box-sizing:border-box!important;position:relative;z-index:100;
  width:100%!important;max-width:none!important;min-height:65px;
  margin:0!important;padding:12px max(24px,calc((100vw - 1220px)/2));
  background:#fffbf7!important;border:0!important;
  display:flex!important;justify-content:space-between!important;align-items:center!important;
  gap:24px;color:#322518;font-family:Arial,Helvetica,sans-serif;line-height:1.55;
}
.tih-unified-header,.tih-unified-header *,.tih-unified-header *::before,.tih-unified-header *::after{box-sizing:border-box}
.tih-unified-header a.tih-unified-brand{
  color:#805c34!important;font:italic 29px/1.3 Georgia,'Times New Roman',serif!important;
  text-decoration:none!important;white-space:nowrap!important;flex-shrink:0;margin:0!important;
}
.tih-unified-header nav.tih-unified-links {
  display:flex!important;gap:25px!important;flex-wrap:wrap!important;justify-content:flex-end!important;
  align-items:center!important;font:400 13px/1.55 Arial,Helvetica,sans-serif!important;
  margin:0!important;padding:0!important;
}
.tih-unified-header .tih-unified-links a{
  display:inline-block!important;color:#322518!important;font:inherit!important;
  text-decoration:none!important;border:0;border-bottom:1px solid transparent!important;
  padding:5px 0!important;margin:0!important;transition:color .2s ease;
}
.tih-unified-header .tih-unified-links a:hover,
.tih-unified-header .tih-unified-links a:focus-visible,
.tih-unified-header .tih-unified-links a.current {
  color:#76501f!important;border-bottom-color:#a77d46!important;
}
.tih-unified-header a:focus-visible{outline:2px solid #a77d46;outline-offset:4px}
@media(max-width:1100px){
  header.tih-unified-header{flex-direction:column!important;gap:9px;padding:13px 16px}
  .tih-unified-header nav.tih-unified-links{justify-content:center!important;gap:11px 16px!important}
}
@media(max-width:540px){
  .tih-unified-header a.tih-unified-brand{font-size:25px!important}
  .tih-unified-header nav.tih-unified-links{gap:9px 13px!important;font-size:11px!important}
}

/* v1.2 — Only template-generated labels placed ABOVE our landing-page hero.
   Visual content headings (including the hero text) remain untouched. */
body.page .wp-block-post-title,
body.page .wp-block-query-title,
body.page .wp-block-site-title,
body.page .entry-header > h1.entry-title,
body.page .page-header > h1.page-title,
body.page h1.elementor-page-title,
body.home .wp-block-post-title,
body.home .wp-block-site-title,
body.home .entry-header > h1.entry-title {
  display:none!important;
}
/* The large-title Twenty Twenty-Five header variant sometimes leaves a divider.
   Hide only the original header when the unified replacement has loaded. */
body.page [data-tih-hidden-old-header="1"],
body.home [data-tih-hidden-old-header="1"] {
  display:none!important;
}

/* v1.3: On Thai weddings only, remove the old rule/divider around the
   legacy clickable site-name header, without touching the hero below. */
body:has(main.tihw) .wp-site-blocks > .wp-block-template-part:has(header.tih-unified-header),
body:has(main.tihw) .wp-site-blocks > .wp-block-group:has(header.tih-unified-header) {
    border:0!important;
}
body:has(main.tihw) .wp-block-template-part:has(header.tih-unified-header) .wp-block-separator {
    display:none!important;
}
