/*
   Tapestry canonical non-Google workspace format
   Money is the visual authority for canvas, typography and spacing.
   Category identity may vary through color, artwork and content only.
*/

.tapestry-page-surface:not([data-category="google"]){
  --tapestry-canonical-workspace-max:1760px;
  --tapestry-canonical-workspace-pad-x:22px;
  --tapestry-canonical-workspace-pad-top:14px;
  --tapestry-canonical-workspace-pad-bottom:48px;
  --tapestry-canonical-display:"Cormorant Garamond",Georgia,serif;
  --tapestry-canonical-body:Inter,"Source Sans 3",system-ui,sans-serif;
  --tapestry-canonical-title-size:clamp(2.65rem,4vw,4.2rem);
  --tapestry-canonical-section-size:clamp(2rem,2.6vw,3rem);
  --tapestry-canonical-card-title-size:1.7rem;
  --tapestry-canonical-script-size:1.22rem;
  --tapestry-canonical-kicker-size:.72rem;
  width:100%;
  min-width:0;
  box-sizing:border-box;
  font-family:var(--tapestry-canonical-body)!important;
}

/* Exact Money canvas authority for all workspace categories except Google. */
.tapestry-page-surface:not([data-category="google"]) > :is(section,main,div){
  width:min(100%,var(--tapestry-canonical-workspace-max))!important;
  max-width:var(--tapestry-canonical-workspace-max)!important;
  margin-left:auto!important;
  margin-right:auto!important;
  padding-left:var(--tapestry-canonical-workspace-pad-x)!important;
  padding-right:var(--tapestry-canonical-workspace-pad-x)!important;
  box-sizing:border-box!important;
}

/* Known top-level workspace authorities: normalize vertical canvas too. */
.tapestry-page-surface:not([data-category="google"]) :is(
  .today-page--anchor,
  .household-page,
  .home-page,
  .family-living-workspace,
  .people-page,
  .people-workspace,
  .money-overview,
  .library-overview,
  .lifestyle-overview,
  .legacy-hub,
  .system-hub,
  .steward-hub
){
  width:min(100%,var(--tapestry-canonical-workspace-max))!important;
  max-width:var(--tapestry-canonical-workspace-max)!important;
  margin-left:auto!important;
  margin-right:auto!important;
  padding-top:var(--tapestry-canonical-workspace-pad-top)!important;
  padding-right:var(--tapestry-canonical-workspace-pad-x)!important;
  padding-bottom:var(--tapestry-canonical-workspace-pad-bottom)!important;
  padding-left:var(--tapestry-canonical-workspace-pad-x)!important;
  box-sizing:border-box!important;
  font-family:var(--tapestry-canonical-body)!important;
}

/* Money title typography is now canonical. */
.tapestry-page-surface:not([data-category="google"]) :is(
  .today-page-title,
  .household-archive-toolbar h1,
  .home-hero h1,
  .homebase-title-copy h1,
  .family-hero h1,
  .family-child-header h1,
  .people-overview-title-card h1,
  .people-hero h1,
  .money-overview-title-card h1,
  .library-overview-title-card h1,
  .lifestyle-overview-title-card h1,
  .legacy-overview-title-copy h1,
  .legacy-hero h1,
  .system-hero h1,
  .steward-hero h1
){
  margin-top:0!important;
  margin-bottom:0!important;
  padding:0!important;
  border:0!important;
  border-image:none!important;
  outline:0!important;
  box-shadow:none!important;
  background:transparent!important;
  color:inherit;
  font-family:var(--tapestry-canonical-display)!important;
  font-size:var(--tapestry-canonical-title-size)!important;
  font-style:normal!important;
  font-weight:500!important;
  line-height:.93!important;
  letter-spacing:-.025em!important;
}

/* Canonical editorial section title scale. */
.tapestry-page-surface:not([data-category="google"]) :is(
  .today-section__heading h2,
  .homebase-section-heading h2,
  .family-section-heading h2,
  .people-overview-section-heading h2,
  .money-overview-section-heading h2,
  .library-overview-section-heading h2,
  .lifestyle-overview-section-heading h2,
  .legacy-toolbar-panel h2
){
  font-family:var(--tapestry-canonical-display)!important;
  font-size:var(--tapestry-canonical-section-size)!important;
  font-style:normal!important;
  font-weight:500!important;
  line-height:1!important;
  letter-spacing:-.015em!important;
}

/* Canonical card/workspace title scale. */
.tapestry-page-surface:not([data-category="google"]) :is(
  .today-card h2,
  .household-card__heading h2,
  .household-archive-summary h2,
  .home-card h2,
  .family-story-card h2,
  .family-child-card h2,
  .people-panel h2,
  .people-card h2,
  .money-overview-card h2,
  .library-overview-card h2,
  .lifestyle-overview-card h2,
  .legacy-panel h2,
  .system-panel h2,
  .steward-panel h2
){
  font-family:var(--tapestry-canonical-display)!important;
  font-size:var(--tapestry-canonical-card-title-size)!important;
  font-style:normal!important;
  font-weight:500!important;
  line-height:1.05!important;
  letter-spacing:0!important;
}

/* Money kicker treatment is canonical. */
.tapestry-page-surface:not([data-category="google"]) :is(
  .today-kicker,
  .today-card__eyebrow,
  .household-card__eyebrow,
  .home-eyebrow,
  .home-card__eyebrow,
  .family-kicker,
  .people-overview-kicker,
  .people-panel__eyebrow,
  .money-overview-kicker,
  .library-overview-kicker,
  .lifestyle-overview-kicker,
  .legacy-eyebrow,
  .legacy-panel-eyebrow,
  .system-eyebrow,
  .system-panel-eyebrow,
  .steward-eyebrow,
  .steward-panel-eyebrow
){
  font-family:var(--tapestry-canonical-body)!important;
  font-size:var(--tapestry-canonical-kicker-size)!important;
  font-weight:800!important;
  letter-spacing:.16em!important;
  line-height:1.2!important;
  text-transform:uppercase!important;
}

/* Cursive accent size follows Money exactly wherever a landing page uses one. */
.tapestry-page-surface:not([data-category="google"]) :is(
  .today-anchor-script,
  .homebase-title-script,
  .family-hero__note p,
  .people-overview-script,
  .money-overview-script,
  .library-overview-script,
  .lifestyle-overview-script,
  .legacy-overview-script
){
  font-family:Caveat,"Segoe Script",cursive!important;
  font-size:var(--tapestry-canonical-script-size)!important;
  font-weight:600!important;
  line-height:1.15!important;
}

/* Standard/generic record workspaces inherit the same Money canvas and title scale. */
.tapestry-page-surface:not([data-category="google"]) .standard-record-workspace{
  width:min(100%,var(--tapestry-canonical-workspace-max))!important;
  max-width:var(--tapestry-canonical-workspace-max)!important;
  margin:0 auto!important;
  padding:var(--tapestry-canonical-workspace-pad-top) var(--tapestry-canonical-workspace-pad-x) var(--tapestry-canonical-workspace-pad-bottom)!important;
}
.tapestry-page-surface:not([data-category="google"]) .standard-record-workspace .household-archive-toolbar h1{
  font-family:var(--tapestry-canonical-display)!important;
  font-size:var(--tapestry-canonical-title-size)!important;
  font-weight:500!important;
  line-height:.93!important;
  letter-spacing:-.025em!important;
}

/* Responsive Money behavior: keep the exact desktop standard, relax only when needed. */
@media (max-width:900px){
  .tapestry-page-surface:not([data-category="google"]){
    --tapestry-canonical-workspace-pad-x:16px;
    --tapestry-canonical-workspace-pad-top:12px;
    --tapestry-canonical-workspace-pad-bottom:36px;
    --tapestry-canonical-title-size:clamp(2.35rem,10vw,3.5rem);
    --tapestry-canonical-section-size:clamp(1.85rem,7vw,2.6rem);
  }
}
@media (max-width:620px){
  .tapestry-page-surface:not([data-category="google"]){
    --tapestry-canonical-workspace-pad-x:12px;
    --tapestry-canonical-workspace-pad-bottom:28px;
  }
}
