/* Shared finishing rules. Product-specific controls live in catalog-polish.css. */
:root {
  --yose-radius-control: 8px;
  --yose-radius-media: 8px;
  --yose-line: #e5e5df;
  --yose-duration: 180ms;
  --yose-ease: cubic-bezier(.2,.65,.3,1);
  --yose-muted: #70746f;
}

body { -webkit-text-size-adjust: 100%; }
/* HTML dimensions reserve the original ratio; CSS-width photos must shrink too. */
img { height: auto; }
.cat-order-summary > img { height: auto; aspect-ratio: 1; object-fit: contain; }
a, button, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font-family: inherit; }
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--green, #003e36);
  outline-offset: 3px;
}
:where(button, input, select, textarea) {
  transition: border-color var(--yose-duration) var(--yose-ease),
    background-color var(--yose-duration) var(--yose-ease),
    color var(--yose-duration) var(--yose-ease),
    box-shadow var(--yose-duration) var(--yose-ease);
}

/* Keep the brand row and navigation on one measured vertical rhythm. */
.header { padding-top: 18px; }
.header-main { gap: 24px; }
.top-search {
  width: min(320px, 38vw);
  height: 44px;
  border-color: #d7ddd7;
  border-radius: var(--yose-radius-control);
  background: #fff;
}
.top-search:focus-within { outline: 2px solid #49756b; outline-offset: 2px; }
.top-search button {
  display: grid;
  place-items: center;
  width: 44px;
  flex: 0 0 44px;
  padding: 0;
}
.top-search input { padding-inline: 13px; }
.top-search svg { display: block; }
.nav { gap: 28px; padding: 18px 0 10px; }
.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 0;
  text-decoration: none;
  text-underline-offset: 5px;
  transition: color var(--yose-duration) var(--yose-ease);
}
.nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--yose-duration) var(--yose-ease);
}
.nav a:hover { color: var(--green); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--green); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.mobile-actions button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: var(--yose-radius-control);
}
.mobile-actions svg { display: block; }
.mobile-actions button[aria-expanded="true"] { background: #f0f5f2; color: var(--green); }

/* Shared primary actions keep their existing green and typography. */
.btn, .page-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: var(--yose-radius-control);
  padding: 9px 20px;
  line-height: 1.5;
  text-align: center;
  transition: background-color var(--yose-duration) var(--yose-ease),
    border-color var(--yose-duration) var(--yose-ease),
    box-shadow var(--yose-duration) var(--yose-ease);
}
.btn:hover, .page-button:hover { background-color: #0b6055; }
.btn-outline:hover { color: #fff; }
.feature img, .story-image img, .home-instagram img, .home-products img,
.page-meeting-link img, .page-about-work { border-radius: var(--yose-radius-media); }
.story.reverse .story-image img, .page-about-partnership { border-radius: 50%; }

/* Home and About use the same centred, accessible carousel controls. */
.home-slider { container-type: inline-size; margin-bottom: 22px; }
.home-products { margin-bottom: 0; padding-bottom: 12px; scroll-padding-inline: 1px; }
.home-products img { height: auto; aspect-ratio: 1; object-fit: cover; }
.home-products h3 { margin: 8px 0 8px; line-height: 1.4; }
.home-prev, .home-next {
  display: grid;
  place-items: center;
  top: calc((100cqw - 60px) / 8);
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #d7dfd8;
  border-radius: 50%;
  background: #fffffff5;
  color: var(--green);
  box-shadow: 0 2px 7px #142d2009;
  transform: translateY(-50%);
  font-size: 0;
  line-height: 0;
}
.home-prev { left: -20px; }
.home-next { right: -20px; }
.home-prev > img, .home-next > img { display: block; width: 18px; height: 18px; }
.home-prev:not(:disabled):hover, .home-next:not(:disabled):hover {
  background-color: #f0f5f2;
  border-color: #79988b;
}
.home-prev:disabled, .home-next:disabled { opacity: .35; cursor: default; box-shadow: none; }
.home-products > a:focus-visible { outline-offset: 3px; border-radius: var(--yose-radius-media); }

/* Content and contact retain the original composition with consistent edges. */
.page-wrap { padding-top: 20px; padding-bottom: 52px; }
.page-original { max-width: 1000px; }
.page-original-title { margin-bottom: 24px; }
.page-original-content { line-height: 1.7; }
.page-original-content h2 { margin-top: 28px; font-size: 21px; }
.page-original-content h3 { font-size: 18px; }
.page-original-content hr, .page-original-content details, .page-faq-item { border-color: var(--yose-line); }
.page-original-content hr { background-color: var(--yose-line); }
.page-original-content table { display: block; width: max-content; max-width: 100%; overflow-x: auto; }
.page-original-content th, .page-original-content td { border-color: var(--yose-line); }
.page-original-content a:hover, .page-studio-details a:hover { color: #155c4f; }
.page-contact-original { margin-top: 12px; margin-bottom: 48px; }
.page-studio-details { margin-block: 40px; line-height: 1.7; }
.page-contact-form h1 { font-size: 22px; margin-bottom: 22px; border-bottom-color: var(--yose-line); }
.page-contact-form > p { padding: 0; line-height: 1.65; margin-bottom: 22px; }
.page-contact-form label { line-height: 1.5; margin-bottom: 18px; }
.page-contact-form input[type="email"], .page-contact-form select, .page-contact-form textarea {
  width: 100%;
  min-height: 44px;
  margin-top: 7px;
  padding: 11px 13px;
  border: 1px solid #d7ddd7;
  border-radius: var(--yose-radius-control);
  background: #fff;
  color: #252525;
  line-height: 1.5;
}
.page-contact-form textarea { min-height: 112px; }
.page-contact-form input[type="email"]:focus, .page-contact-form select:focus, .page-contact-form textarea:focus {
  border-color: #49756b;
  outline: 2px solid #49756b;
  outline-offset: 2px;
}
.page-contact-form label.page-referral { min-height: 44px; gap: 12px; margin: 4px 0 16px; }
.page-referral input { flex: 0 0 20px; }
.page-contact-submit .page-button { width: 100%; }
.page-contact-status { margin-top: 14px; color: var(--yose-muted); line-height: 1.6; }
.page-about-original { margin-top: 12px; }
.page-about-original h1, .page-about-original h2 { margin-bottom: 16px; }
.page-about-original p { line-height: 1.65; }
.page-about-links { flex-wrap: wrap; }
.page-faq { max-width: 1000px; }
.page-faq-item summary { font-size: 18px; min-height: 62px; padding-block: 18px; }
.page-faq-mark::after, .footer-group summary::after { transition: transform var(--yose-duration) var(--yose-ease); }
.page-faq-answer { line-height: 1.7; padding-bottom: 20px; }
.page-faq-item[open] .page-faq-answer { animation: yose-content-in var(--yose-duration) var(--yose-ease); }

.footer { border-top-color: var(--yose-line); padding-top: 32px; padding-bottom: 32px; }
.footer-group summary { margin-bottom: 16px; line-height: 1.5; }
.footer a { width: fit-content; color: #454b45; line-height: 1.5; margin-bottom: 10px; text-underline-offset: 3px; }
.footer a:hover { color: var(--green); }
.cookie-note { border-color: var(--yose-line); border-radius: var(--yose-radius-control); color: #686d67; }
.cookie-note button { display: grid; place-items: center; line-height: 1; border-radius: 6px; }
.cookie-note button:hover { background: #f0f5f2; color: var(--green); }
.skip:focus { border-radius: 6px; padding: 10px 14px; outline-offset: 2px; }

@keyframes yose-content-in {
  from { opacity: .7; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (hover: hover) {
  .mobile-actions button:hover { background: #f3f6f3; }
}
@media (max-width: 700px) {
  .header { padding-top: 12px; }
  .header-main { gap: 10px; }
  .mobile-actions { gap: 10px; }
  .top-search { width: 100%; flex-basis: 100%; }
  .top-search input { font-size: 16px; }
  .nav { gap: 0; padding: 12px 0 8px; }
  .nav.open { animation: yose-content-in var(--yose-duration) var(--yose-ease); }
  .nav a { min-height: 44px; border-bottom: 1px solid var(--yose-line); }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { font-weight: 700; }
  .home-prev, .home-next { top: calc((100cqw - 12px) / 4); }
  .home-prev { left: -12px; }
  .home-next { right: -12px; }
  .home-products h3 { font-size: 14px; }
  .page-wrap { padding-top: 18px; padding-bottom: 40px; }
  .page-original-title { font-size: 23px; }
  .page-original-content h2 { font-size: 20px; }
  .page-contact-original, .page-about-original { margin-top: 10px; }
  .page-studio-details { margin-block: 32px; }
  .page-contact-form h1 { font-size: 22px; }
  .page-contact-form input[type="email"], .page-contact-form select, .page-contact-form textarea { font-size: 16px; }
  .page-faq-item summary { font-size: 17px; min-height: 58px; padding-block: 16px; }
  .footer { padding-block: 8px; }
  .footer-group { border-top-color: var(--yose-line); padding-block: 16px; }
  .footer-group summary { min-height: 28px; margin-bottom: 14px; }
  .footer-group:not([open]) summary { margin-bottom: 0; }
  .footer a { margin-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html, body, * { scroll-behavior: auto !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Keep the remaining catalogue and order controls on the same radius. */
.cat-filter-toggle,.cat-sort,.cat-filter-panel,.cat-filter-field select,.cat-price-inputs input,
.cat-order input:not([type=radio]):not([type=checkbox]),.cat-order textarea,
.cat-order .cat-order-choice,.cat-order .cat-primary,.cat-order-preview-button,
.yose-locker input,.yose-locker-find,.yose-locker-manual-select,.yose-locker-map-button,
.yose-mail-footer button{border-radius:var(--yose-radius-control)}
.cat-order input:not([type=radio]):not([type=checkbox]),.cat-order textarea{border-color:#d7ddd7}
.cat-order .cat-primary,.cat-order-preview-button{min-height:44px}
/* The skip link moves focus to the content region, rather than a control. */
#app:focus{outline:none}
