body.hc-configurable{background:var(--hc-page-bg);color:var(--hc-body-color);font-size:var(--hc-font-size)}
.hc-configurable .hc-wrap{width:min(var(--hc-max-width),calc(100% - 80px))}
.hc-configurable .hc-header::before{height:var(--hc-header-fade);background:linear-gradient(to bottom,var(--hc-header-start),var(--hc-header-mid) 55%,var(--hc-header-end))}
.hc-configurable.hc-no-header-gradient .hc-header::before{display:none}
.hc-configurable.hc-logo-static .hc-brand{position:relative;top:auto;left:auto;transform:none}
.hc-configurable.hc-nav-static .hc-shortcuts{position:relative;top:auto}
.hc-configurable .hc-shortcuts{background:var(--hc-nav-bg);color:var(--hc-nav-text);border-top-color:var(--hc-accent)}
.hc-configurable .hc-shortcuts a:last-child{color:var(--hc-nav-text)}
.hc-configurable .hc-header nav a,.hc-configurable .hc-shortcuts a{font-size:var(--hc-nav-size)}
.hc-configurable .hc-header nav a:hover,.hc-configurable .hc-header nav a:focus-visible,.hc-configurable .hc-shortcuts a:hover,.hc-configurable .hc-shortcuts a:focus-visible,.hc-configurable .hc-gold{background:var(--hc-accent);color:var(--hc-button-text)}
.hc-configurable .hc-hero{border-color:var(--hc-accent);background:transparent}
.hc-configurable .hc-hero::after{display:none}
.hc-configurable .hc-hero-auto{min-height:0}
.hc-configurable .hc-hero h1{font-size:clamp(38px,10.4vw,var(--hc-hero-size));color:var(--hc-section-text)}
.hc-configurable .hc-hero :is(p,.hc-hero-intro){color:var(--hc-section-text)}
.hc-configurable .hc-hero-intro{font-size:var(--hc-font-size)}
.hc-configurable #hc-main section > .hc-managed-background{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none}
.hc-managed-background>img,.hc-managed-background>video,.hc-managed-background>.hc-media-overlay{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hc-managed-background>video{opacity:0}
.hc-managed-background>video.hc-video-playing{opacity:1}
.hc-configurable #hc-main .hc-section-surface{padding:0;min-height:var(--hc-section-min);color:var(--hc-section-text)}
.hc-configurable #hc-main .hc-section-content{position:relative;z-index:1;padding-block:var(--hc-section-padding);min-height:inherit}
.hc-configurable #hc-main [data-overlap-base]{padding-inline:0}
.hc-configurable .hc-native :is(p,summary,figcaption),.hc-configurable .hc-native{color:var(--hc-section-text);font-size:var(--hc-font-size)}
.hc-configurable .hc-native :is(h2,h3,h4){color:var(--hc-section-heading)}
.hc-configurable .hc-native h2{font-size:clamp(32px,4.5vw,var(--hc-heading-size))}
.hc-configurable .hc-native .hc-eyebrow{font-size:.7em}
.hc-configurable .hc-native .hc-text-link{color:var(--hc-section-heading)!important;border-color:var(--hc-accent)}
.hc-configurable .hc-native .hc-photo figcaption{background:var(--hc-nav-bg);color:var(--hc-nav-text)}
.hc-configurable .hc-cards article{background:var(--hc-card-bg);border-color:var(--hc-accent)}
.hc-configurable .hc-cards article p{color:var(--hc-card-text)}
.hc-configurable .hc-cards article h3{color:var(--hc-card-heading)}
.hc-configurable .hc-cards article .hc-text-link{color:var(--hc-card-heading)!important}
.hc-configurable .hc-footer-name{color:var(--hc-heading-color)!important}
.hc-configurable .hc-config-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:60px;align-items:center}
.hc-configurable .hc-media-left .hc-second-column{order:-1}
.hc-configurable .hc-second-column video{width:100%;height:auto}
.hc-configurable .hc-section-content>*{min-width:0}
.hc-configurable.hc-no-image-hover .hc-photo-media img{filter:none}
.hc-configurable.hc-no-image-hover .hc-photo-media::after{display:none}
.hc-configurable #hc-main section,.hc-configurable #hc-main details{scroll-margin-top:calc(var(--hc-shortcut-height,110px) + var(--hc-admin-bar-height) + 12px)}
@media(max-width:800px){.hc-configurable .hc-wrap{width:calc(100% - 40px)}.hc-configurable .hc-config-split{grid-template-columns:1fr;gap:30px}.hc-configurable .hc-media-left .hc-second-column{order:0}.hc-configurable #hc-main .hc-section-content{padding-block:min(var(--hc-section-padding),55px)}.hc-configurable.hc-logo-static .hc-header{height:auto;min-height:var(--hc-header-height);flex-direction:column;align-items:center}.hc-configurable .hc-shortcuts{overflow-wrap:anywhere}}

.hc-configurable.hc-no-hero #hc-main{padding-top:var(--hc-header-height)}

/* Isolate this template from the theme's fixed-height body scroll container. */
html.hc-document {
  height: auto;
  min-height: 100%;
  overflow-x: clip;
  overflow-y: auto;
  background: var(--hc-page-bg, #fff);
}
html.hc-document body.paine-homecoming {
  height: auto;
  min-height: 100vh;
  overflow: visible;
  border-top: 0;
}
/* Theme heading padding and italic links must not alter the builder's spacing. */
.hc-configurable :is(h1,h2,h3,h4,h5,h6) { padding: 0; }
.hc-configurable :is(.hc-header,.hc-shortcuts,.hc-footer,.hc-native) a,
.hc-configurable .hc-button { font-style: normal; }
.hc-configurable .hc-header { box-shadow: none; }
.hc-configurable .hc-cards { grid-template-columns: repeat(3,minmax(0,1fr)); }
.hc-configurable .hc-cards article { min-width: 0; overflow-wrap: anywhere; }
.hc-configurable .hc-section-content img { max-width: 100%; }
@media(max-width:1000px) and (min-width:801px) {
  .hc-configurable .hc-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:800px) {
  .hc-configurable .hc-cards { grid-template-columns: minmax(0,1fr); }
  .hc-configurable .hc-shortcuts { padding-top: 85px; }
  .hc-configurable .hc-shortcuts a { padding: 8px 10px; }
}
.hc-configurable .hc-hero p,
.hc-configurable .hc-native p,
.hc-configurable .hc-footer p { padding: 0; }
.hc-configurable .hc-hero-copy { padding-block: clamp(30px,6vh,80px); }

/* Keep the site-wide footer theme out of the Homecoming footer. */
.hc-configurable .hc-footer {
  background: none;
  border: 0;
  flex-direction: row;
  padding-block: 35px 100px;
  color: var(--hc-body-color);
}
.hc-configurable .hc-status {
  display: inline-block;
  vertical-align: top;
  margin: 4px 0 24px;
  line-height: 1.5;
}
.hc-configurable .hc-items-beside {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.3fr);
  gap: 60px;
  align-items: start;
}
.hc-configurable .hc-items-beside .hc-cards { grid-template-columns: 1fr; margin-top: 0; }
@media(max-width:800px) {
  .hc-configurable .hc-items-beside { grid-template-columns: minmax(0,1fr); gap: 30px; }
  .hc-configurable .hc-footer { flex-direction: column; align-items: flex-start; }
}

/* Align width-limited copy with the section heading and call to action. */
.hc-configurable .hc-align-center .hc-native p { margin-inline: auto; }
.hc-configurable .hc-align-right .hc-native p { margin-left: auto; margin-right: 0; }

/* Editable logo boxes preserve the source image proportions. */
.hc-configurable .hc-brand img {
  width: var(--hc-logo-width,49px);
  height: var(--hc-logo-height,54px);
  object-fit: contain;
  flex-shrink: 0;
}
.hc-configurable .hc-shortcuts {
  min-height: 94px;
  flex-wrap: wrap;
}
.hc-configurable .hc-header { min-height: 94px; }
.hc-configurable .hc-card-icon {
  width: var(--hc-icon-size,64px);
  height: var(--hc-icon-size,64px);
  object-fit: contain;
  margin-bottom: 24px;
  align-self: flex-start;
}
@media(max-width:800px) {
  .hc-configurable .hc-brand { max-width: calc(100vw - 40px); }
  .hc-configurable .hc-brand img { width: var(--hc-logo-mobile-width,38px); height: var(--hc-logo-mobile-height,54px); }
  body.hc-configurable { --hc-header-height: calc(var(--hc-mobile-brand-height,70px) + 54px); }
  .hc-configurable .hc-shortcuts { padding-left: 12px; padding-top: calc(var(--hc-mobile-brand-height,70px) + 5px); }
  .hc-configurable .hc-header { height: var(--hc-header-height); min-height: var(--hc-header-height); }
  .hc-configurable .hc-brand img { max-width: 30vw; }

}

.hc-shortcut-links { display: contents; }
@media(max-width:800px) {
  body.hc-configurable {
    --hc-mobile-logo-w: var(--hc-logo-mobile-width,60px);
    --hc-mobile-logo-h: var(--hc-logo-mobile-height,60px);
  }
  .hc-configurable .hc-brand,
  .hc-configurable.hc-mobile-nav-stuck .hc-brand {
    left: 12px; top: calc(var(--hc-admin-bar-height) + 12px);
    transform: none; padding: 0; width: max-content; min-width: var(--hc-mobile-logo-w);
    height: var(--hc-mobile-logo-h); max-width: none;
  }
  .hc-configurable .hc-brand img,
  .hc-configurable.hc-mobile-nav-stuck .hc-brand img {
    width: auto; height: var(--hc-mobile-logo-h); max-width: none; object-fit: contain;
  }
  .hc-configurable .hc-header {
    height: auto; min-height: calc(var(--hc-mobile-logo-h) + 24px);
    padding: 12px 12px 12px calc(var(--hc-mobile-brand-width,var(--hc-mobile-logo-w)) + 24px);
    gap: 0; align-items: center; justify-content: center;
  }
  .hc-configurable .hc-header nav {
    width: 100%; min-width: 0; flex-wrap: wrap; justify-content: flex-start;
    gap: 2px; margin: 0;
  }
  .hc-configurable .hc-header nav > a:not(:last-child) { display: inline-flex; }
  .hc-configurable .hc-header nav a {
    font-size: 13px; padding: 8px; min-height: 40px;
    max-width: 100%; overflow-wrap: anywhere; align-items: center;
  }
  .hc-configurable .hc-shortcuts {
    width: 100%; max-width: 100%; box-sizing: border-box;
    height: calc(var(--hc-mobile-logo-h) + 24px);
    min-height: 0; padding: 0 0 0 calc(var(--hc-mobile-brand-width,var(--hc-mobile-logo-w)) + 24px);
    flex-wrap: nowrap; justify-content: flex-start;
  }
  .hc-configurable .hc-shortcut-links {
    display: flex; flex: 1 1 0%; width: 0; min-width: 0; max-width: 100%;
    overflow-x: auto; overscroll-behavior-x: contain;
    align-items: center; white-space: nowrap; scrollbar-width: thin;
  }
  .hc-configurable .hc-shortcuts a { flex: 0 0 auto; font-size: 13px; padding: 12px; min-height: 44px; }
  .hc-configurable .hc-hero-copy { min-width: 0; }
  .hc-configurable .hc-hero h1 { font-size: clamp(32px,10vw,var(--hc-hero-size)); overflow-wrap: anywhere; }
}

/* Introduction media keeps its editor-selected size, constrained only by column width. */
.hc-configurable .hc-hero-intro img {
  height: auto;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
}
.hc-configurable .hc-hero-copy > :is(h1,p):empty { display: none; }

.hc-configurable .hc-hero:not(.hc-hero-auto):has(.hc-hero-copy img) .hc-hero-copy {
  padding-block: 16px;
}
.hc-configurable .hc-hero:not(.hc-hero-auto):has(.hc-hero-copy img) .hc-hero-intro {
  padding-top: 0;
}
.hc-configurable .hc-hero:not(.hc-hero-auto):has(.hc-hero-copy img) .hc-hero-intro p {
  margin-bottom: 12px;
}

/* Event shortcodes inherit the template's link reset unless explicitly styled. */
.hc-configurable .events-grid .event-button,
.hc-configurable .events-grid .event-button:visited {
  background: var(--hc-nav-bg,#34085a);
  color: #fff;
  font-style: normal;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}
.hc-configurable .events-grid .event-button:hover,
.hc-configurable .events-grid .event-button:focus-visible {
  background: var(--hc-accent,#cda177);
  color: var(--hc-button-text,#2d123e);
}
.hc-events-export { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 24px; }
.hc-events-export button { cursor: pointer; border: 0; font-family: inherit; }
.hc-events-export small { font-size: 14px; }

.hc-configurable .events-grid[hidden],.hc-configurable .hc-event-week[hidden] { display:none!important; }
.hc-event-views,.hc-week-navigation { display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:20px; }
.hc-event-views button,.hc-week-navigation button { font:600 15px Montserrat,sans-serif;padding:12px 18px;border:1px solid var(--hc-nav-bg);border-radius:4px;background:white;color:var(--hc-nav-bg);cursor:pointer; }
.hc-event-views button[aria-pressed="true"] { background:var(--hc-nav-bg);color:white; }
.hc-week-navigation button:disabled { opacity:.4;cursor:default; }
.hc-week-navigation p { margin:0;flex:1;text-align:center;font-size:16px; }
.hc-week-days { display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px; }
.hc-configurable .hc-week-day { min-width:0;padding:12px;background:#f6f4f1;border-radius:6px;overflow-wrap:anywhere; }
.hc-configurable .hc-week-day h3 { font-size:16px;letter-spacing:0; }
.hc-week-day article { padding-block:12px;border-top:1px solid #d8d1da; }
.hc-configurable .hc-week-day p { padding:0;font-size:14px;line-height:1.5;margin:10px 0; }
.hc-configurable .hc-week-day a { font-size:15px;font-weight:700;font-style:normal;color:var(--hc-heading-color); }
@media(max-width:1100px) { .hc-week-days { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .hc-week-days { grid-template-columns:1fr; } }

/* Keep export and calendar controls distinct on colored section backgrounds. */
.hc-configurable .hc-events-export button {
  background: var(--hc-nav-bg,#34085a);
  color: #fff;
  border: 1px solid var(--hc-nav-bg,#34085a);
  border-radius: 4px;
  font: 700 15px/1.4 Montserrat,sans-serif;
  padding: 12px 18px;
  min-height: 44px;
}
.hc-configurable .hc-events-export button:hover,
.hc-configurable .hc-events-export button:focus-visible,
.hc-configurable .hc-week-navigation button:not(:disabled):hover {
  background: #fff;
  color: var(--hc-nav-bg,#34085a);
}
.hc-configurable .hc-week-navigation {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  width: 100%;
  gap: 12px;
}
.hc-configurable .hc-week-navigation p {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}
.hc-configurable .hc-week-navigation button {
  margin: 0;
  min-height: 44px;
  white-space: nowrap;
}
.hc-configurable .hc-week-navigation button:last-child { justify-self: end; }
.hc-configurable .hc-events-export button:focus-visible,
.hc-configurable .hc-week-navigation button:focus-visible {
  outline: 3px solid var(--hc-nav-bg,#34085a);
  outline-offset: 3px;
}
@media(max-width:600px) {
  .hc-configurable .hc-week-navigation { grid-template-columns: 1fr 1fr; }
  .hc-configurable .hc-week-navigation p { grid-column: 1 / -1; grid-row: 1; }
  .hc-configurable .hc-week-navigation button { padding: 10px; font-size: 13px; }
}

.hc-configurable .hc-shortcode-heading { margin-bottom: 28px; }

/* Long sections use a bounded image instead of enlarging it to the full content height. */
.hc-configurable #hc-main .hc-background-top > .hc-managed-background > img {
  height: min(100%,clamp(320px,60vw,800px));
  bottom: auto;
  -webkit-mask-image: linear-gradient(to bottom,#000 45%,transparent 100%);
  mask-image: linear-gradient(to bottom,#000 45%,transparent 100%);
}

/* Shared builder control for calls to action and event controls. */
.hc-configurable .hc-button,
.hc-configurable .events-grid .event-button,
.hc-configurable .hc-events-export button,
.hc-configurable .hc-event-views button,
.hc-configurable .hc-week-navigation button,
.hc-configurable .wp-block-button__link {
  border-radius: var(--hc-button-radius,0px);
}

.hc-anchor-marker { display: block; height: 0; pointer-events: none; }
