/*
Theme Name: Galway Finance
Theme URI: https://galwayfinance.com.au/
Author: Galway Finance
Description: Galway Finance child block theme for Twenty Twenty-Four.
Template: twentytwentyfour
Version: 1.6.0
Text Domain: galway-finance
*/

/* General refinance duplicate: preserve the source layout with editable blocks. */
.gf-general-refinance .gf-refinance-copy-0{color:var(--text-muted);line-height:1.7;margin-top:16px}
.gf-general-refinance .gf-refinance-copy-1{align-items:start}
.gf-general-refinance .gf-refinance-copy-2{color:var(--text-muted);line-height:1.75;margin-bottom:20px}
.gf-general-refinance .gf-refinance-copy-3{color:var(--text-muted);line-height:1.75;margin-bottom:20px}
.gf-general-refinance .gf-refinance-copy-4{color:var(--text-muted);line-height:1.75;margin-bottom:28px}
.gf-general-refinance .gf-refinance-copy-5{margin-top:16px}
.gf-general-refinance .gf-refinance-copy-6{margin-top:36px}
.gf-general-refinance .wp-block-group > * { margin-block-start: 0; }
.gf-general-refinance .gf-refinance-link { margin: 0; }
.gf-general-refinance .lp-hero-photo { margin: 0; flex-shrink: 0; }
.gf-general-refinance .lp-hero-photo img { width: 72px; height: 90px; object-fit: cover; border-radius: .875rem; }
.gf-general-refinance .wp-block-details { padding: 1.25rem 0; border-bottom: 1px solid var(--border); }
.gf-general-refinance summary { cursor: pointer; font-weight: 600; }
.gf-general-refinance details[open] summary { margin-bottom: 1rem; }

/* Booking and calculator usability: retain the site's existing design tokens. */
.gf-booking-improved .booking-direct-link { margin: 0 0 16px; }
.gf-booking-improved .booking-direct-link .btn { width: 100%; white-space: normal; text-align: center; }
.gf-booking-status { color: var(--text-muted); font-size: 14px; line-height: 1.6; padding: 12px 14px; margin: 0 0 16px; background: var(--off-white, #f5f5f7); border-radius: 10px; }
.gf-booking-status[hidden] { display: none; }
.gf-exact-value { position: relative; margin: 10px 0 4px; }
.gf-exact-value > span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.gf-design-apple .calc-full-card .gf-exact-value input { padding: 12px 16px 12px 38px; width: 100%; min-width: 0; min-height: 48px; font-size: 18px; font-variant-numeric: tabular-nums; }
.gf-exact-value input[aria-invalid=true] { border-color: #a32424; }
.gf-input-error { color: #a32424; font-size: 14px; line-height: 1.5; margin: 8px 0; }
.gf-input-error[hidden], .gf-calculator-prompt[hidden] { display: none; }
.gf-calculator-prompt { padding: 18px; margin: 24px 0 0; border: 1px dashed var(--border); border-radius: 12px; color: var(--text-muted); font-size: 15px; line-height: 1.6; }
.gf-calculator-assumptions { margin: 16px 0 24px; padding: 0; border-block: 1px solid var(--border); }
.gf-calculator-assumptions summary { padding: 16px 0; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--navy); }
.gf-calculator-assumptions .disclaimer-note { font-size: 14px; line-height: 1.7; margin: 0 0 16px; }
.calc-full-card .gf-calculator-caveat { font-size: 14px; line-height: 1.6; margin-top: 16px; }
.gf-calculator-shortcuts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.gf-calculator-shortcuts .btn { min-height: 48px; }
.gf-exact-value input:focus-visible, .gf-calculator-assumptions summary:focus-visible, .gf-calculator-shortcuts a:focus-visible, .gf-booking-improved a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
#borrowing-calculator, #repayment { scroll-margin-top: 100px; }
.calc-page-grid { align-items: start; }
.calc-full-card .result-big { overflow-wrap: anywhere; }
.calc-full-card .gf-calculator-error .result-big { font-size: 20px; line-height: 1.5; font-weight: 600; }
/* Keep each email label with its field inside the narrow calculator card. */
.gf-calculator-email-form .inline-capture-fields {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-top: 20px;
}
.gf-calculator-email-form .inline-capture-fields > label {
  position: static;
  width: auto;
  height: auto;
  clip: auto;
  clip-path: none;
  overflow: visible;
  white-space: normal;
  padding: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}
.gf-design-apple .gf-calculator-email-form .inline-capture-fields > input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 0 0 8px;
  font-size: 16px;
}
.gf-calculator-email-form .inline-capture-fields > .btn {
  width: 100%;
  min-height: 48px;
  justify-content: center;
  white-space: normal;
  margin: 0;
}
.gf-calculator-email-form .form-helper {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.65;
}
.gf-calculator-email-form .inline-capture-message:empty { display: none; }
.gf-calculator-email-form :is(input, button):focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
/* Contact-only refinements; never applied to the home-page enquiry form. */
.gf-contact-refined .gf-contact-actions { align-items: stretch; }
.gf-contact-refined .gf-contact-actions .btn {
  min-height: 52px;
  justify-content: center;
  text-align: center;
  white-space: normal;
}
.gf-contact-refined .gf-contact-direct { gap: 8px 24px; margin-top: 20px; }
.gf-contact-refined .gf-contact-direct a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  overflow-wrap: anywhere;
}
.gf-contact-refined #enquiry { padding-top: 24px; scroll-margin-top: 88px; }
.gf-contact-refined .lp-form-sub { max-width: 60ch; line-height: 1.65; }
.gf-contact-refined .service-card { display: flex; flex-direction: column; }
.gf-contact-refined .service-card .service-link { margin-top: auto; padding-top: 20px; }
.gf-contact-refined :is(a, button):focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
@media (max-width: 600px) {
  .gf-contact-refined .gf-contact-actions { width: 100%; }
  .gf-contact-refined .gf-contact-actions .btn { width: 100%; }
  .gf-contact-refined .gf-contact-direct { gap: 0; flex-direction: column; }
  .gf-contact-refined .page-hero { padding-bottom: 24px; }
}
@media (max-width: 900px) {
  .gf-booking-improved.booking-layout--calendar-first { grid-template-columns: minmax(0, 1fr); }
  .booking-section:has(.gf-booking-improved) { padding-top: 12px; }
  body:has(.gf-booking-improved) .page-hero { padding-bottom: 28px; }
}
@media (max-width: 560px) {
  .gf-calculator-shortcuts .btn { flex: 1 1 130px; justify-content: center; }
  .gf-booking-improved .booking-widget-header h2 { font-size: 26px; }
}

/* Resources library: scoped to the posts index, never the static home page. */
.gf-resource-library .gf-resource-hero,
.gf-resource-library .gf-resource-main,
.gf-resource-library .gf-resource-local,
.gf-resource-library .gf-resource-cta { padding-inline: max(24px, calc((100% - 1120px) / 2)); }
.gf-resource-library .gf-resource-hero { background: var(--off-white); padding-block: 40px 48px; }
.gf-resource-library .gf-resource-breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.gf-resource-library .gf-resource-hero h1 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -.04em; margin-block: 12px 16px; }
.gf-resource-library .gf-resource-hero .lead { max-width: 640px; margin-left: 0 !important; }
.gf-resource-library .gf-resource-jump { margin-top: 16px; }
.gf-resource-library .gf-resource-jump a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; }
.gf-resource-library .gf-resource-main { padding-block: 48px 64px; }
.gf-resource-library .gf-resource-main > * { margin-block-start: 0; }
.gf-resource-library .gf-resource-main h2,
.gf-resource-library .gf-resource-local h2,
.gf-resource-library .gf-resource-cta h2 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.025em; }
.gf-resource-library .gf-resource-start > p,
.gf-resource-library .gf-resource-browse > p { margin-block: 10px 24px; color: var(--text-muted); }
.gf-resource-library .gf-resource-starters { gap: 16px; align-items: stretch; }
.is-style-resource-starter { padding: 24px; background: var(--wp--preset--color--off-white); border: 1px solid var(--wp--preset--color--border); border-radius: 18px; }
.gf-resource-library .is-style-resource-starter > * { margin-block: 0; }
.gf-resource-library .is-style-resource-starter h3 { font-size: 21px; line-height: 1.3; margin-block: 12px; }
.gf-resource-library .is-style-resource-starter h3 a { color: inherit; text-decoration: none; }
.gf-resource-library .is-style-resource-starter p:not(.eyebrow) { font-size: 15px; line-height: 1.6; }
.gf-resource-library .is-style-resource-starter p:last-child { margin-top: 16px; }
.gf-resource-library .is-style-resource-starter p:last-child a { padding-block: 10px; display: inline-flex; gap: 8px; min-height: 44px; font-weight: 600; }
.gf-resource-library .gf-resource-browse { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--border); scroll-margin-top: 100px; }
.gf-resource-topics { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 24px 16px; }
.gf-resource-topics a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border: 1px solid var(--border); border-radius: 24px; color: var(--text); background: var(--white); font-size: 14px; font-weight: 600; line-height: 1.4; text-decoration: none; }
.gf-resource-topics a:hover { border-color: var(--navy); background: var(--off-white); }
.gf-resource-topics a[aria-current="page"] { color: var(--white); background: var(--navy); border-color: var(--navy); }
.gf-resource-library .gf-resource-count { font-size: 14px; margin-block: 20px 24px; color: var(--text-muted); }
.gf-resource-library .blog-query .blog-grid-full { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 20px; }
.gf-resource-library .blog-query .blog-body { padding: 24px; gap: 12px; }
.gf-resource-library .blog-body > * { margin-block: 0; }
.gf-resource-library .blog-tag-inline a { color: var(--navy); background: transparent; padding: 8px 0; min-height: 36px; margin: 0; font-size: 11px; }
.gf-resource-library .blog-meta { gap: 8px; color: var(--text-muted); font-size: 13px; }
.gf-resource-library .blog-meta p { margin: 0; }
.gf-resource-library .blog-query .wp-block-post-title { font-size: 21px; line-height: 1.3; }
.gf-resource-library .blog-query .wp-block-post-excerpt { font-size: 15px; line-height: 1.6; }
.gf-resource-library .blog-query .wp-block-post-excerpt__excerpt { margin: 0; }
.gf-resource-library .blog-query .wp-block-post-excerpt__more-link { min-height: 44px; align-items: center; margin-top: 12px; }
.gf-resource-library .wp-block-query-pagination { gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.gf-resource-library .wp-block-query-pagination :is(a, span.current) { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 8px 12px; border-radius: 10px; }
.gf-resource-library .wp-block-query-pagination .current { background: var(--navy); color: var(--white); }
.gf-resource-library .gf-resource-local { background: var(--off-white); padding-block: 48px; }
.gf-resource-library .gf-resource-local p { margin-top: 16px; }
.gf-resource-library .gf-resource-local a { display: inline-block; padding-block: 8px; }
.gf-resource-library .gf-resource-cta { padding-block: 48px 64px; }
.gf-resource-library .gf-resource-cta .wp-block-buttons { margin-top: 24px; gap: 12px; }
.gf-resource-library .gf-resource-cta .wp-element-button { background: var(--navy); color: var(--white); border-radius: 30px; padding: 14px 24px; min-height: 48px; font-weight: 600; }
.gf-resource-library .gf-resource-cta .wp-element-button:hover { background: var(--navy-dark); }
.gf-resource-library :is(main, .gf-resource-hero, .gf-resource-local, .gf-resource-cta) a:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
@media (max-width: 900px) {
  .gf-resource-library .blog-query .blog-grid-full { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .gf-resource-library .gf-resource-starters { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .gf-resource-library .gf-resource-hero { padding-block: 24px 32px; }
  .gf-resource-library .gf-resource-main { padding-block: 32px 48px; }
  .gf-resource-library .blog-query .blog-grid-full { grid-template-columns: minmax(0, 1fr) !important; }
  .gf-resource-library .gf-resource-starters .is-style-resource-starter { padding: 20px; }
  .gf-resource-library .gf-resource-browse { margin-top: 32px; padding-top: 32px; }
  .gf-resource-library .gf-resource-cta .wp-block-buttons { flex-direction: column; align-items: stretch; }
  .gf-resource-library .gf-resource-cta .wp-element-button { width: 100%; text-align: center; }
}
