/* Layout extensions for the service catalog and its public forms.
   Color, type and movement come from the original public website. */
.public-shell.website .ce-commercial { color: hsl(var(--foreground)); }
.public-shell.website :is(.ce-commercial,.ce-form-shell) :is(a,button,input,textarea,summary):focus-visible {
  outline: 2px solid hsl(var(--cp-deep));
  outline-offset: 3px;
}
.public-shell.website .ce-commercial :is(img,figure) { display: block; margin: 0; }
.public-shell.website .ce-commercial img { width: 100%; object-fit: cover; }
.public-shell.website .ce-commercial figcaption { margin-top: .5rem; color: hsl(var(--muted-foreground)); font-size: .75rem; }
.public-shell.website .ce-commercial figcaption a { text-decoration: underline; text-underline-offset: .2em; }
.public-shell.website .ce-breadcrumb ol { width: min(100% - 2rem, 75rem); margin: auto; padding: .75rem 0; display: flex; flex-wrap: wrap; gap: .3rem .55rem; font-size: .8rem; }
.public-shell.website .ce-breadcrumb li + li::before { content: "/"; padding-right: .55rem; color: hsl(var(--muted-foreground)); }
.public-shell.website :is(.ce-breadcrumb,.ce-note,.ce-notice,.ce-photo-credits,.ce-form-shell) a:not(.ce-button) { color: hsl(var(--cp-deep)); text-decoration: underline; text-underline-offset: .17em; }

.public-shell.website .ce-hero { border-bottom: 1px solid hsl(var(--border)); }
.public-shell.website .ce-hero h1 { font-size: clamp(2.15rem, 4.8vw, 3.85rem); }
.public-shell.website .ce-hero .mh-media { min-width: 0; }
.public-shell.website .ce-hero .mh-media__frame { aspect-ratio: 4 / 3; }
.public-shell.website .ce-hero--material .mh-media__frame { aspect-ratio: 3 / 2; }
.public-shell.website .ce-hero--property img { object-position: center 60%; }
.public-shell.website .ce-hero .mh__lead { margin-bottom: .5rem; }
.public-shell.website .ce-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; margin-top: 1.1rem; }
.public-shell.website .ce-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; text-align: center;
  padding: .62rem 1.1rem; border: 1px solid transparent; border-radius: 999px;
  font: 600 .9rem/1.35 var(--font-body); text-decoration: none;
}
.public-shell.website .ce-button--primary { background: hsl(var(--primary)); color: hsl(var(--foreground)); }
.public-shell.website .ce-button--outline { background: hsl(var(--card)); border-color: hsl(var(--border)); color: hsl(var(--foreground)); }

.public-shell.website .ce-section { scroll-margin-top: 5rem; }
.public-shell.website .ce-section :is(h1,h2) { margin-bottom: 1.15rem; }
.public-shell.website .ce-section p { max-width: 72ch; }
.public-shell.website .ce-section--tint { background: hsl(var(--muted)); }
.public-shell.website .ce-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.public-shell.website .ce-card {
  border: 1px solid hsl(var(--border)); border-radius: 1rem; background: hsl(var(--card));
  overflow: hidden; box-shadow: var(--carolina-shadow);
  transition: transform .22s var(--mh-ease), border-color .22s;
}
.public-shell.website .ce-card a { display: flex; flex-direction: column; height: 100%; }
.public-shell.website .ce-card img { aspect-ratio: 16 / 9; }
.public-shell.website .ce-card a > div { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; padding: 1rem; flex: 1; }
.public-shell.website .ce-card a:focus-visible { outline-offset: -3px; }
.public-shell.website .ce-card p { color: hsl(var(--muted-foreground)); font-size: .9rem; }
.public-shell.website .ce-card span { color: hsl(var(--cp-deep)); font-size: .84rem; font-weight: 700; margin-top: auto; }
.public-shell.website .ce-card span::after { content: " →"; }

.public-shell.website :is(.ce-process,.ce-details) { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; list-style: none; padding: 0; }
.public-shell.website :is(.ce-process,.ce-details) li { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); padding: 1rem; border-radius: .65rem; }
.public-shell.website .ce-process strong { display: block; color: hsl(var(--cp-deep)); margin-bottom: .25rem; }
.public-shell.website .ce-band .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.public-shell.website .ce-band h2 { margin-bottom: .4rem; }
.public-shell.website .ce-band .ce-actions { margin: 0; }
.public-shell.website .ce-note { width: min(100% - 2rem, 70rem); margin: 0 auto; padding-bottom: 1.2rem; color: hsl(var(--muted-foreground)); font-size: .85rem; }
.public-shell.website .ce-notice { background: hsl(var(--accent)); border: 1px solid hsl(var(--border)); border-radius: .75rem; padding: 1rem; }
.public-shell.website .ce-faq { padding: .8rem 0; border-bottom: 1px solid hsl(var(--border)); max-width: 65ch; }
.public-shell.website .ce-faq summary { min-height: 32px; font-weight: 600; cursor: pointer; }
.public-shell.website .ce-faq p { margin-top: .4rem; }
.public-shell.website .ce-table-scroll { overflow-x: auto; margin: 1.1rem 0; }
.public-shell.website .ce-plan-table { width: 100%; border-collapse: collapse; }
.public-shell.website .ce-plan-table :is(th,td) { text-align: left; padding: .7rem .55rem; border-bottom: 1px solid hsl(var(--border)); }
.public-shell.website .ce-plan-table thead { background: hsl(var(--accent)); }
.public-shell.website .ce-zip-form { margin-top: 1rem; }
.public-shell.website .ce-zip-form label { display: block; font-weight: 600; margin-bottom: .35rem; }
.public-shell.website .ce-zip-form div { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.public-shell.website .ce-photo-credits { columns: 2; column-gap: 2rem; margin-top: 1rem; }
.public-shell.website .ce-photo-credits a { display: inline-block; padding: .25rem 0; }
.public-shell.website .ce-fallback-nav { display: flex; flex-wrap: wrap; gap: .55rem 1rem; align-items: center; font-size: .84rem; }
.public-shell.website .ce-fallback-nav a { padding: .3rem 0; }
.public-shell.website .ce-portfolio-section + .ce-portfolio-section { margin-top: 2rem; }

.public-shell.website .ce-form-shell { max-width: 680px; }
.public-shell.website .ce-form-shell h1 { font-size: clamp(2rem, 6vw, 3rem); }
.public-shell.website .ce-form-shell form { display: grid; justify-items: start; row-gap: .85rem; margin: 1.2rem 0; }
.public-shell.website .ce-form-shell form label { width: 100%; font-weight: 600; }
.public-shell.website :is(.ce-form-shell,.ce-zip-form) :is(input:not([type="hidden"]),textarea) {
  min-height: 44px; padding: .6rem .75rem; border: 1px solid hsl(var(--muted-foreground)/.55);
  border-radius: .65rem; background: hsl(var(--card)); color: hsl(var(--foreground));
}
.public-shell.website .ce-form-shell :is(input:not([type="hidden"]),textarea) { display: block; width: 100%; margin-top: .35rem; }
.public-shell.website .ce-form-shell small { color: hsl(var(--muted-foreground)); }
.public-shell.website .ce-form-shell .ce-form-links { margin-top: 1.1rem; }

@media (hover:hover) and (pointer:fine) {
  .public-shell.website .ce-card:hover { transform: translateY(-2px); border-color: hsl(var(--primary)/.5); }
  .public-shell.website .ce-button--primary:hover { background: hsl(var(--cp-deep)); color: hsl(var(--primary-foreground)); }
}
@media (max-width:900px) {
  .public-shell.website .ce-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:650px) {
  .public-shell.website :is(.ce-grid,.ce-process,.ce-details) { grid-template-columns: minmax(0,1fr); }
  .public-shell.website .ce-band .container { align-items: flex-start; flex-direction: column; }
  .public-shell.website .ce-photo-credits { columns: 1; }
}
@media (prefers-reduced-motion:reduce) {
  .public-shell.website :is(.ce-card,.ce-button) { transition: none; transform: none; }
}
