/*
Theme Name: Argent TT5 Vessel
Description: Linus proving vessel for Argent on Twenty Twenty-Five.
Author: Argent local
Template: twentytwentyfive
Version: 0.1.5
Text Domain: argent-tt5-vessel
*/

/*
 * Local-vessel ownership only.
 * Governed content presentation remains owned by Amphora/Schemas.
 */

:root {
  --argent-tt5-field: #f3f0e8;
  --argent-tt5-surface: #fffdf8;
  --argent-tt5-ink: #17191d;
  --argent-tt5-line: #d8d1c2;
  --argent-tt5-accent: #8a4a2a;
  --argent-tt5-width: 1180px;
}

body.argent-tt5-vessel {
  --amphora-local-site-field: var(--argent-tt5-field);
  --amphora-local-site-surface: var(--argent-tt5-surface);
  --amphora-local-header-surface: var(--argent-tt5-surface);
  --amphora-local-article-surface: var(--argent-tt5-surface);
  --amphora-local-footer-shell-surface: var(--argent-tt5-surface);
  --amphora-local-card-surface: var(--argent-tt5-surface);
  --amphora-local-panel-surface: #f8f4ec;
  --amphora-local-line: var(--argent-tt5-line);
  --amphora-local-ink: var(--argent-tt5-ink);
  --amphora-local-page-width: var(--argent-tt5-width);

  margin: 0;
  background: var(--argent-tt5-field);
  color: var(--argent-tt5-ink);
}

body.argent-tt5-vessel .wp-site-blocks {
  min-height: 100vh;
}

body.argent-tt5-vessel .argent-tt5-header-shell {
  background: var(--argent-tt5-surface);
  border-bottom: 1px solid var(--argent-tt5-line);
}

body.argent-tt5-vessel .argent-tt5-header-inner {
  width: min(calc(100% - 36px), var(--argent-tt5-width));
  margin-inline: auto;
  padding-block: 18px;
}

body.argent-tt5-vessel .argent-tt5-header-inner .wp-block-site-title {
  margin: 0;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 700;
  letter-spacing: .01em;
}

body.argent-tt5-vessel .argent-tt5-header-inner .wp-block-site-title a {
  color: var(--argent-tt5-ink);
  text-decoration: none;
}

body.argent-tt5-vessel .argent-tt5-header-inner .wp-block-navigation-item__content {
  color: var(--argent-tt5-accent);
  font-weight: 650;
  text-decoration: none;
}

body.argent-tt5-vessel .argent-tt5-header-inner .wp-block-navigation-item__content:hover,
body.argent-tt5-vessel .argent-tt5-header-inner .wp-block-navigation-item__content:focus-visible {
  color: var(--argent-tt5-ink);
}

body.argent-tt5-vessel main.wp-block-group,
body.argent-tt5-vessel main.savvy-amphora-page {
  width: min(calc(100% - 36px), var(--argent-tt5-width));
  margin-inline: auto;
}

body.argent-tt5-vessel .argent-tt5-footer-shell {
  min-height: 1px;
}

@media (max-width: 782px) {
  body.argent-tt5-vessel .argent-tt5-header-inner,
  body.argent-tt5-vessel main.wp-block-group,
  body.argent-tt5-vessel main.savvy-amphora-page {
    width: min(calc(100% - 24px), var(--argent-tt5-width));
  }
}

/* Argent TT5 0.1.1 local search foundation. */
body.argent-tt5-vessel.argent-local-search .argent-tt5-search-main {
  width: min(calc(100% - 36px), var(--argent-tt5-width));
  margin: 28px auto 48px;
}
body.argent-tt5-vessel.argent-local-search .argent-tt5-search-card {
  padding: clamp(20px, 3vw, 34px);
  background: var(--argent-tt5-surface);
  border: 1px solid var(--argent-tt5-line);
  border-radius: 14px;
}
body.argent-tt5-vessel.argent-local-search .argent-tt5-search-form {
  display: flex;
  gap: 10px;
  margin: 18px 0 22px;
}
body.argent-tt5-vessel.argent-local-search .argent-tt5-search-form input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 12px;
}
body.argent-tt5-vessel.argent-local-search .argent-tt5-search-form button {
  padding: 10px 16px;
}
body.argent-tt5-vessel.argent-local-search .argent-tt5-search-results {
  display: grid;
  gap: 12px;
  list-style: none;
  padding: 0;
}
body.argent-tt5-vessel.argent-local-search .argent-tt5-search-result {
  padding: 14px 16px;
  border: 1px solid var(--argent-tt5-line);
  border-radius: 10px;
}

/*
 * Argent TT5 0.1.3 — local presentation for Amphora's presentation-neutral
 * publisher vessel footer.
 *
 * The governed footer content/markup remains Amphora-owned.  These rules only
 * define how that neutral footer is presented inside this local TT5 vessel.
 */

body.argent-tt5-vessel .argent-tt5-footer-shell {
  display: none;
}

body.argent-tt5-vessel .savvy-amphora-global-footer-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: var(--argent-tt5-surface);
  color: var(--argent-tt5-ink);
  border-top: 1px solid var(--argent-tt5-line);
}

body.argent-tt5-vessel .savvy-amphora-global-footer-shell .savvy-amphora-global-footer-embed {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.argent-tt5-vessel .savvy-amphora-global-footer-shell .publisher-footer-component {
  box-sizing: border-box;
  width: min(calc(100% - 36px), var(--argent-tt5-width));
  max-width: var(--argent-tt5-width);
  margin: 0 auto;
  padding: 22px 0 24px;
  background: transparent;
  color: var(--argent-tt5-ink);
  font: inherit;
}

body.argent-tt5-vessel .savvy-amphora-global-footer-shell .publisher-footer-component-row,
body.argent-tt5-vessel .savvy-amphora-global-footer-shell .pagecache-footer-row {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(56px, 84px) minmax(0, 1fr) minmax(56px, 84px);
  align-items: center;
  gap: 18px;
  width: 100%;
  margin: 0;
  padding: 0;
}

body.argent-tt5-vessel .savvy-amphora-global-footer-shell :is(
  .footer-left,
  .footer-right
) {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  margin: 0;
  padding: 0;
}

body.argent-tt5-vessel .savvy-amphora-global-footer-shell .footer-center {
  min-width: 0;
  margin: 0;
  padding: 0;
  text-align: center;
  color: var(--argent-tt5-ink);
  font-size: 0.78rem;
  line-height: 1.35;
}

body.argent-tt5-vessel .savvy-amphora-global-footer-shell .footer-line {
  margin: 0.16rem 0;
  padding: 0;
}

body.argent-tt5-vessel .savvy-amphora-global-footer-shell .footer-line-primary,
body.argent-tt5-vessel .savvy-amphora-global-footer-shell .footer-company-name {
  font-weight: 650;
}

body.argent-tt5-vessel .savvy-amphora-global-footer-shell .footer-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
}

body.argent-tt5-vessel .savvy-amphora-global-footer-shell :is(
  .footer-left,
  .footer-right,
  .footer-mark
) svg {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 64px !important;
  max-height: 64px !important;
  margin: 0 !important;
}

body.argent-tt5-vessel .savvy-amphora-global-footer-shell .footer-mark-realtor svg {
  max-width: 58px !important;
  max-height: 58px !important;
}

body.argent-tt5-vessel .savvy-amphora-global-footer-shell .footer-mark-fairhousing svg {
  max-width: 70px !important;
  max-height: 58px !important;
}

body.argent-tt5-vessel .savvy-amphora-global-footer-shell a {
  color: var(--argent-tt5-accent);
}

body.argent-tt5-vessel .savvy-amphora-global-footer-shell a:hover,
body.argent-tt5-vessel .savvy-amphora-global-footer-shell a:focus-visible {
  color: var(--argent-tt5-ink);
}

@media (max-width: 782px) {
  body.argent-tt5-vessel .savvy-amphora-global-footer-shell .publisher-footer-component {
    width: min(calc(100% - 24px), var(--argent-tt5-width));
    padding-block: 18px 20px;
  }

  body.argent-tt5-vessel .savvy-amphora-global-footer-shell .publisher-footer-component-row,
  body.argent-tt5-vessel .savvy-amphora-global-footer-shell .pagecache-footer-row {
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    gap: 10px;
  }

  body.argent-tt5-vessel .savvy-amphora-global-footer-shell :is(
    .footer-left,
    .footer-right,
    .footer-mark
  ) svg {
    max-width: 48px !important;
    max-height: 48px !important;
  }

  body.argent-tt5-vessel .savvy-amphora-global-footer-shell .footer-center {
    font-size: 0.72rem;
  }
}

@media (max-width: 520px) {
  body.argent-tt5-vessel .savvy-amphora-global-footer-shell .publisher-footer-component-row,
  body.argent-tt5-vessel .savvy-amphora-global-footer-shell .pagecache-footer-row {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  body.argent-tt5-vessel .savvy-amphora-global-footer-shell .footer-center {
    order: 1;
  }

  body.argent-tt5-vessel .savvy-amphora-global-footer-shell .footer-left {
    order: 2;
  }

  body.argent-tt5-vessel .savvy-amphora-global-footer-shell .footer-right {
    order: 3;
  }
}

/*
 * Argent TT5 0.1.4
 * Local containment for governed Listings favorite glyphs.
 *
 * The favorite state/semantics remain governed.  This only supplies the
 * dimensional box that the legacy Astra vessel previously supplied.
 */
body.argent-tt5-vessel.savvy-amphora-page-type-listings
  .pagecache-listing-favorite-toggle {
  box-sizing: border-box !important;
  max-width: max-content !important;
}

body.argent-tt5-vessel.savvy-amphora-page-type-listings
  .pagecache-listing-favorite-icon-slot,
body.argent-tt5-vessel.savvy-amphora-page-type-listings
  .pagecache-listing-favorite-icon {
  box-sizing: border-box !important;
  display: inline-grid !important;
  place-items: center !important;
  flex: 0 0 1.15rem !important;
  width: 1.15rem !important;
  height: 1.15rem !important;
  min-width: 1.15rem !important;
  min-height: 1.15rem !important;
  max-width: 1.15rem !important;
  max-height: 1.15rem !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  line-height: 1 !important;
  font-size: 1rem !important;
}

body.argent-tt5-vessel.savvy-amphora-page-type-listings
  .pagecache-listing-favorite-icon::before,
body.argent-tt5-vessel.savvy-amphora-page-type-listings
  .pagecache-listing-favorite-icon::after {
  box-sizing: border-box !important;
  max-width: 1.15rem !important;
  max-height: 1.15rem !important;
  font-size: 1rem !important;
  line-height: 1 !important;
}

/*
 * Home geometry belongs to the local vessel.  Do not force the entire TT5
 * block stack to a viewport minimum on the Home route; the governed home
 * component should determine its natural height.
 */
body.argent-tt5-vessel.home .wp-site-blocks {
  min-height: 0 !important;
}

body.argent-tt5-vessel.home main#wp--skip-link--target {
  margin-top: 0 !important;
  padding-top: 1.75rem !important;
  padding-bottom: 2.5rem !important;
}

body.argent-tt5-vessel.home
  .savvy-pagecache-component[data-amphora-layout="publisher_vessel_home_v1"] {
  margin-bottom: 0 !important;
}

@media (max-width: 782px) {
  body.argent-tt5-vessel.home main#wp--skip-link--target {
    padding-top: 1.1rem !important;
    padding-bottom: 1.75rem !important;
  }
}

/* Argent local WordPress/Joomla comparison switcher. */
body.argent-tt5-vessel .argent-vessel-switcher {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 2147482000;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  box-sizing: border-box;
  margin: 0;
  padding: 3px;
  border: 1px solid rgba(20,24,30,.18);
  border-radius: 999px;
  background: rgba(255,253,248,.96);
  box-shadow: 0 4px 14px rgba(20,24,30,.14);
  backdrop-filter: blur(8px);
  font: 600 12px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
body.argent-tt5-vessel .argent-vessel-switcher__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--argent-tt5-ink);
  text-decoration: none;
  white-space: nowrap;
}
body.argent-tt5-vessel .argent-vessel-switcher__item.is-current {
  background: var(--argent-tt5-ink);
  color: var(--argent-tt5-surface);
}
body.argent-tt5-vessel .argent-vessel-switcher__item.is-disabled {
  opacity: .45;
  cursor: not-allowed;
}
@media (max-width:520px) {
  body.argent-tt5-vessel .argent-vessel-switcher { right:10px; bottom:10px; }
  body.argent-tt5-vessel .argent-vessel-switcher__item { min-height:26px; padding-inline:8px; font-size:11px; }
}
