/* Shared site refinements. Individual components retain their intended borders. */
:root{
  --pina-hairline-navy:rgba(0,46,93,.28);
  --pina-hairline-width:.5px;
}

/* Keep keyboard focus more visible than decorative borders. */
html body :focus-visible{
  outline-color:rgba(8,119,201,.58);
}

/* The site-wide return control remains circular on every page stylesheet. */
html body .lgu-scroll-top{
  width:46px!important;
  min-width:46px!important;
  height:46px!important;
  min-height:46px!important;
  padding:0!important;
  border-radius:50%!important;
  background:#00345f!important;
  color:#fff!important;
  box-shadow:0 8px 22px rgba(0,30,65,.14)!important;
}
html body .lgu-scroll-top:hover,
html body .lgu-scroll-top:focus-visible{
  border-radius:50%!important;
  background:#dcecf6!important;
  color:#00345f!important;
  box-shadow:none!important;
}

/* Header icon controls are intentionally borderless. */
html body .lgu-primary-nav .lgu-public-actions :where(.lgu-public-search-toggle,.lgu-public-signin){
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
html body .lgu-primary-nav .lgu-public-actions :where(.lgu-public-search-toggle,.lgu-public-signin):hover,
html body .lgu-primary-nav .lgu-public-actions :where(.lgu-public-search-toggle,.lgu-public-signin):focus-visible,
html body .lgu-primary-nav .lgu-public-actions .lgu-public-search-toggle[aria-expanded="true"]{
  border:0!important;
  background:#dcecf6!important;
  color:#00345f!important;
}

/* About page: compact hero and three-column municipal profile. */
html body .about-hero__grid{
  min-height:410px!important;
  grid-template-columns:minmax(0,1fr) 250px!important;
  gap:44px!important;
  padding-block:34px 26px!important;
}
html body .about-hero h1{
  max-width:760px!important;
  font-size:clamp(2.45rem,4.35vw,4.15rem)!important;
}
html body .mayor-collage{width:250px!important;align-self:center!important}
html body .mayor-collage__frame{height:245px!important;padding:8px!important}
html body .mayor-collage__frame .mayor-photo-placeholder{padding:28px 16px 72px!important}
html body .mayor-collage__frame .mayor-photo-placeholder>span{font-size:2.7rem!important}
html body .mayor-collage__label{right:-8px!important;bottom:10px!important;min-width:190px!important;padding:11px 14px!important}
html body .about-tabs a{padding-block:12px!important}

html body .profile-layout{
  position:relative;
  grid-template-columns:minmax(0,1.02fr) minmax(290px,.9fr) minmax(275px,.78fr)!important;
  gap:18px!important;
  align-items:stretch;
}
html body .profile-layout::before{
  content:"A municipality rooted in community, strengthened by service, and moving forward together.";
  grid-column:2;
  grid-row:1;
  display:flex;
  align-items:flex-end;
  min-height:100%;
  padding:24px;
  overflow:hidden;
  border:var(--pina-hairline-width) solid var(--pina-hairline-navy);
  border-radius:5px;
  background-image:linear-gradient(180deg,transparent 42%,rgba(0,30,65,.88) 100%),url('../../uploads/Municipal-hall-1.jpg');
  background-position:center;
  background-size:100% auto;
  background-repeat:no-repeat;
  color:#fff;
  font:600 15px/1.5 "DM Sans","Segoe UI",Arial,sans-serif;
  transition:background-size .35s ease;
}
html body .profile-layout:hover::before{background-size:105% auto}
html body .profile-layout>.municipal-profile{grid-column:1;grid-row:1;padding:28px!important}
html body .profile-layout>.quick-information{grid-column:3;grid-row:1;padding:28px!important}
html body .profile-layout .profile-stats{grid-template-columns:repeat(2,1fr)!important;gap:8px!important;margin-top:22px!important}
html body .profile-layout .profile-stats div{min-height:88px!important;padding:13px!important}
@media(max-width:1050px){
  html body .about-hero__grid{grid-template-columns:minmax(0,1fr) 220px!important}
  html body .mayor-collage{width:220px!important}
  html body .profile-layout{grid-template-columns:1fr 1fr!important}
  html body .profile-layout::before{grid-column:2;min-height:390px}
  html body .profile-layout>.municipal-profile{grid-column:1}
  html body .profile-layout>.quick-information{grid-column:1/-1;grid-row:2}
}

/* Core Values presented as a clear checked list. */
html body .narrative-grid>article:last-child li{
  position:relative;
  min-height:58px;
  padding:11px 8px 11px 36px!important;
}
html body .narrative-grid>article:last-child li::before{
  content:"✓";
  position:absolute;
  top:13px;
  left:2px;
  display:grid;
  place-items:center;
  width:22px;
  height:22px;
  border:var(--pina-hairline-width) solid #0877c9!important;
  border-radius:50%;
  background:#eaf4fb;
  color:#0877c9;
  font:800 13px/1 Arial,sans-serif;
}
html body .narrative-grid>article:last-child li strong{color:#00345f}

/* Standalone municipal photograph and quotation cards. */
html body .profile-layout::before{display:none!important}
html body .profile-layout>.municipal-photo-card{
  grid-column:2;
  grid-row:1;
  align-self:start;
  display:grid;
  gap:10px;
  min-width:0;
  margin:0;
}
html body .municipal-photo-card__image{
  position:relative;
  height:430px;
  overflow:hidden;
  border-radius:4px;
  background:none;
  box-shadow:0 8px 24px rgba(0,46,93,.08);
}
html body .municipal-photo-card__image::before{
  content:"";
  position:absolute;
  inset:0;
  background:url('../../uploads/Municipal-hall-1.jpg') center 52%/cover no-repeat;
  transform:scale(1);
  transform-origin:center;
  will-change:transform;
  transition:transform 1.05s cubic-bezier(.2,.75,.25,1);
}
html body .municipal-photo-card__image:hover::before{transform:scale(1.035)}
@media(prefers-reduced-motion:reduce){
  html body .municipal-photo-card__image::before{transition:none}
}
html body .municipal-photo-card>figcaption{
  padding:16px 20px 17px;
  border-radius:4px;
  background:#eaf4fb;
  color:#00345f;
  font:italic 600 15px/1.5 Georgia,"Times New Roman",serif;
  box-shadow:0 6px 18px rgba(0,46,93,.06);
}
@media(max-width:1050px){
  html body .profile-layout>.municipal-photo-card{grid-column:2;grid-row:1}
  html body .municipal-photo-card__image{height:360px}
  html body .profile-layout>.quick-information{grid-column:1/-1!important;grid-row:2!important}
}
@media(max-width:720px){
  html body .profile-layout>.municipal-photo-card{grid-column:1!important;grid-row:auto!important}
  html body .municipal-photo-card__image{height:320px}
}

/* Compact, evenly balanced Mayor's Corner. */
@media(min-width:1051px){
  html body .mayor-corner{
    min-height:340px!important;
    grid-template-columns:1fr 1.3fr 1.05fr!important;
  }
  html body .mayor-corner>article,
  html body .mayor-corner>blockquote{padding:24px 32px!important}
  html body .mayor-corner__photo img,
  html body .mayor-corner__photo .mayor-photo-placeholder{
    width:220px!important;
    height:190px!important;
    margin-bottom:12px!important;
  }
  html body .mayor-corner blockquote p{
    margin:8px 0 14px!important;
    line-height:1.62!important;
  }
  html body .mayor-corner .priority-list{
    justify-content:flex-start!important;
  }
  html body .mayor-corner .priority-list ul{
    display:grid;
    grid-template-rows:repeat(4,1fr);
    flex:1;
    width:100%;
    margin-top:10px!important;
  }
  html body .mayor-corner .priority-list li{
    display:flex;
    align-items:center;
    min-height:0;
    padding:8px 0 8px 27px!important;
  }
  html body .mayor-corner .priority-list li::before{top:50%;transform:translateY(-50%)}
}

/* Centered Municipal Officials introduction and empty state. */
html body #officials .section-heading{
  margin-right:auto!important;
  margin-left:auto!important;
  text-align:center;
}
html body #officials .official-grid:has(>.data-placeholder){
  display:flex!important;
  justify-content:center;
}
html body #officials .data-placeholder{
  width:min(100%,980px);
  padding:28px 34px!important;
  text-align:center;
}

/* Six municipal service areas in two consistent rows. */
html body #organization .office-directory{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}

/* Barangays are an unordered community list, not a ranking. */
html body #barangays .barangay-list>span{
  position:relative;
  padding:14px 10px 14px 27px!important;
  line-height:1.55!important;
}
html body #barangays .barangay-list>span::before{
  content:"";
  position:absolute;
  top:50%;
  left:9px;
  width:6px;
  height:6px;
  border-radius:50%;
  background:#0877c9;
  transform:translateY(-50%);
}
html body #barangays .barangay-list strong{margin-left:0!important}
@media(max-width:1050px){
  html body #organization .office-directory{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:720px){
  html body #organization .office-directory{grid-template-columns:1fr!important}
}

/* Final compact sizing for the Mayor's Corner. */
@media(min-width:721px){
  html body .mayor-corner{
    min-height:0!important;
    align-items:stretch!important;
  }
  html body .mayor-corner>article,
  html body .mayor-corner>blockquote{
    min-height:0!important;
    padding:20px 28px!important;
  }
  html body .mayor-corner__photo img,
  html body .mayor-corner__photo .mayor-photo-placeholder{
    width:250px!important;
    height:165px!important;
    flex:none!important;
    margin:0 auto 10px!important;
  }
  html body .mayor-corner__photo h3{margin-top:0!important}
  html body .mayor-corner .priority-list ul{
    flex:0 1 auto!important;
    margin-top:8px!important;
  }
  html body .mayor-corner .priority-list li{
    min-height:45px!important;
    padding-top:7px!important;
    padding-bottom:7px!important;
  }
}

/* About profile refinements: full-height municipal image and content-fit facts. */
html body .profile-layout::before{
  align-self:stretch!important;
  min-height:0!important;
  border:0!important;
  background-image:url('../../uploads/Municipal-hall-1.jpg')!important;
  background-position:center center!important;
  background-size:auto 100%!important;
  background-repeat:no-repeat!important;
  color:#fff!important;
  text-shadow:0 2px 10px rgba(0,30,65,.95),0 1px 2px rgba(0,30,65,.9);
  transition:background-size .35s ease!important;
}
html body .profile-layout:hover::before{
  background-size:auto 104%!important;
}
html body .profile-layout>.quick-information{
  align-self:start!important;
  height:auto!important;
  min-height:0!important;
  border:0!important;
}
@media(max-width:1050px){
  html body .profile-layout::before{min-height:390px!important;background-size:cover!important}
  html body .profile-layout:hover::before{background-size:cover!important}
}
@media(max-width:720px){
  html body .profile-layout::before{min-height:330px!important}
}

/* Balanced desktop rhythm for the three municipal-profile columns. */
@media(min-width:1051px){
  html body .profile-layout{align-items:stretch!important}
  html body .profile-layout>.municipal-profile,
  html body .profile-layout::before,
  html body .profile-layout>.quick-information{
    height:100%!important;
    min-height:0!important;
  }
  html body .profile-layout>.municipal-profile{
    display:flex;
    flex-direction:column;
    border:0!important;
  }
  html body .profile-layout>.municipal-profile .profile-stats{
    margin-top:auto!important;
    padding-top:20px;
  }
  html body .profile-layout>.quick-information{
    display:flex;
    align-self:stretch!important;
    flex-direction:column;
    background:#f8fbfd!important;
  }
  html body .profile-layout>.quick-information dl{
    display:grid;
    flex:1;
    grid-template-rows:repeat(5,1fr);
    margin-bottom:0!important;
  }
  html body .profile-layout>.quick-information dl>div{
    display:flex;
    min-height:0;
    flex-direction:column;
    justify-content:center;
  }
  html body .profile-layout::before{
    padding:22px 26px!important;
    background-position:center center!important;
    font-size:14px!important;
    line-height:1.45!important;
  }
}

/* Municipal image caption: a distinct quotation beneath the photograph. */
html body .profile-layout::before{
  content:"“A municipality rooted in community, strengthened by service, and moving forward together.”"!important;
  align-items:flex-end!important;
  padding:0 25px 22px!important;
  background-color:#f2f7fb!important;
  background-position:center top!important;
  background-size:auto calc(100% - 92px)!important;
  color:#00345f!important;
  text-shadow:none!important;
  font-family:Georgia,"Times New Roman",serif!important;
  font-size:15px!important;
  font-style:italic!important;
  font-weight:600!important;
  line-height:1.45!important;
}
html body .profile-layout:hover::before{
  background-size:auto calc(100% - 82px)!important;
}
@media(max-width:1050px){
  html body .profile-layout::before{
    padding:0 22px 20px!important;
    background-size:auto calc(100% - 86px)!important;
  }
  html body .profile-layout:hover::before{background-size:auto calc(100% - 78px)!important}
}
@media(max-width:720px){
  html body .about-hero__grid{grid-template-columns:1fr!important;min-height:auto!important}
  html body .mayor-collage{width:min(100%,250px)!important}
  html body .profile-layout{grid-template-columns:1fr!important}
  html body .profile-layout>.municipal-profile,html body .profile-layout::before,html body .profile-layout>.quick-information{grid-column:1!important;grid-row:auto!important}
  html body .profile-layout::before{min-height:330px;background-size:cover}
  html body .profile-layout:hover::before{background-size:cover}
}

/* About hero mayor portrait: wider, borderless, and softly blue-glossed. */
@media(min-width:1051px){
  html body .about-hero__grid{
    grid-template-columns:minmax(0,1fr) 340px!important;
  }
  html body .mayor-collage{
    width:340px!important;
  }
  html body .mayor-collage__frame{
    position:relative;
    height:285px!important;
    padding:0!important;
    overflow:hidden;
    border:0!important;
    background:rgba(219,236,247,.2)!important;
  }
  html body .mayor-collage__frame::after{
    content:"";
    position:absolute;
    z-index:2;
    inset:0;
    border:0!important;
    background:
      linear-gradient(115deg,rgba(255,255,255,.2) 5%,transparent 33%,rgba(76,154,209,.18) 55%,transparent 78%),
      linear-gradient(180deg,rgba(8,122,199,.11),rgba(0,46,93,.28));
    pointer-events:none;
  }
  html body .mayor-collage__frame img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:top center;
  }
  html body .mayor-collage__frame .mayor-photo-placeholder{
    position:relative;
    z-index:1;
    padding:34px 20px 80px!important;
    border:0!important;
    background:rgba(234,244,251,.78)!important;
  }
  html body .mayor-collage__frame .mayor-photo-placeholder strong,
  html body .mayor-collage__frame .mayor-photo-placeholder small{
    display:none;
  }
  html body .mayor-collage__label{
    z-index:3;
    right:-12px!important;
    bottom:18px!important;
    min-width:230px!important;
    border:0!important;
    background:rgba(0,46,93,.88)!important;
    backdrop-filter:blur(7px);
  }
}
@media(max-width:1050px){
  html body .mayor-collage__frame{border:0!important;background:rgba(219,236,247,.22)!important}
  html body .mayor-collage__label{z-index:3;border:0!important;background:rgba(0,46,93,.88)!important}
}

@media print{
  :root{--pina-hairline-navy:rgba(0,30,65,.38)}
}

/* Premium public-page surface treatment.
   The About page has its own intentional visual system and is excluded. */
html body :is(
  #main-content,
  #programs-content,
  #calendar-content,
  #tourism-content,
  #contact-content,
  #updates-content,
  #transparency-content
) :is(article,.card,.panel,[class$="-card"],[class$="-panel"]){
  border-color:transparent!important;
  outline:0!important;
  box-shadow:0 10px 28px rgba(0,46,93,.075)!important;
}

html body :is(
  #main-content,
  #programs-content,
  #calendar-content,
  #tourism-content,
  #contact-content,
  #updates-content,
  #transparency-content
) > section:not([class*="hero"]):not(.quick-info):not(.municipal-values-strip){
  border-color:transparent!important;
  outline:0!important;
  box-shadow:0 12px 32px rgba(0,46,93,.065)!important;
}

/* Nested content uses separators, not a stack of outlined boxes. */
html body :is(
  #main-content,
  #programs-content,
  #calendar-content,
  #tourism-content,
  #contact-content,
  #updates-content,
  #transparency-content
) :is(article,.card,.panel,[class$="-card"],[class$="-panel"]) :is(article,.card,.panel,[class$="-card"],[class$="-panel"]){
  border-color:transparent!important;
  box-shadow:none!important;
}

html body :is(
  #main-content,
  #programs-content,
  #calendar-content,
  #tourism-content,
  #contact-content,
  #updates-content,
  #transparency-content
) :is(.section-heading,.panel-heading,.card-heading,header){
  border-color:rgba(0,46,93,.10)!important;
}

@media(max-width:720px){
  html body :is(
    #main-content,
    #programs-content,
    #calendar-content,
    #tourism-content,
    #contact-content,
    #updates-content,
    #transparency-content
  ) :is(article,.card,.panel,[class$="-card"],[class$="-panel"]){
    box-shadow:0 7px 20px rgba(0,46,93,.065)!important;
  }
}
