/* =====================================================================
   Chrysalis Art to Wear - 2026 styles (Seren Web)
   Load this LAST in the <head> of every page, after the other style sheets:
   <link rel="stylesheet" href="https://www.chrysalis-art-to-wear.co.uk/css/chrysalis-2026.css">
   It refreshes the text, boxes, pictures and buttons; the menu and footer are left as they are.
   ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;1,400&family=Sarala:wght@400;700&display=swap');

:root{
  --c-text:#2f3a37;
  --c-muted:#56605b;
  --c-head:#4c5a3e;          /* moss green */
  --c-accent:#6b6a35;        /* olive, as the old headings */
  --c-accent-dark:#4f4e24;
  --c-cream:#f7f5ee;
  --c-card:#ffffff;
  --c-line:#e3e1d6;
  --radius:14px;
  --shadow:0 2px 6px rgba(47,58,55,.06),0 10px 28px rgba(47,58,55,.08);
  --f-body:'Lato',Verdana,Arial,sans-serif;
  --f-head:'Sarala',Tahoma,Verdana,sans-serif;
}

/* ---- page and text ---- */
body{background:var(--c-cream);color:var(--c-text);font-family:var(--f-body);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
.maincontent p,.maincontent li{font-size:1.05rem;line-height:1.7;color:var(--c-text)}
.mid h2:not(.newhomebanner2),.mid h3:not(.newhomebanner2),.mid h4:not(.newhomebanner2){font-family:var(--f-head);color:var(--c-head);line-height:1.25;font-weight:700;letter-spacing:.01em}
.mid h2:not(.newhomebanner2){font-size:clamp(1.45rem,2.4vw,1.75rem);margin:1.1em 0 .5em}
.mid h3:not(.newhomebanner2){font-size:clamp(1.15rem,1.8vw,1.3rem);margin:1em 0 .4em;color:var(--c-accent)}
.maincontent a{color:var(--c-accent-dark);text-decoration-thickness:1px;text-underline-offset:3px}
.maincontent a:hover{color:var(--c-head)}
.maincontent p:empty:not(.clear){display:none}   /* empty lines left by the old editor (p.clear is kept: it stops floats) */

/* text from the page editor */
.ql-align-center{text-align:center!important}
.ql-align-right{text-align:right!important}
.ql-align-justify{text-align:justify!important}
.ql-size-small{font-size:.875em}
.ql-size-large{font-size:1.25em}
.ql-size-huge{font-size:1.6em}

/* ---- boxes: <div class="card"> ... </div>
   (the site already has an older .box class - small floated squares - so these are called "card") ---- */
.card{display:block;float:none;width:auto;max-width:860px;margin-left:auto!important;margin-right:auto!important;background:var(--c-card);border:1px solid var(--c-line);border-radius:var(--radius);box-shadow:var(--shadow);
  padding:clamp(18px,3.5vw,34px);margin:0 0 26px;box-sizing:border-box;overflow:hidden;text-align:left}
.card>:first-child{margin-top:0}
.card>:last-child{margin-bottom:0}
.card.plain{background:transparent;border:0;box-shadow:none;padding:0}
.card.highlight{background:#f1f0e4;border-color:#dedcc6}

/* ---- pictures ---- */
img.fullscreenall{display:block;width:100%!important;height:auto;max-width:100%;margin:14px 0;border-radius:10px}
img.halfscreenleft,img.halfscreenright{width:46%!important;height:auto;border-radius:10px;margin:6px 0 14px}
img.halfscreenleft{float:left;margin-right:4%}
img.halfscreenright{float:right;margin-left:4%}
img.right{float:right;max-width:45%;height:auto;margin:6px 0 12px 18px;border-radius:10px}
img.left{float:left;max-width:45%;height:auto;margin:6px 18px 12px 0;border-radius:10px}
/* several pictures together: <div class="photos"> with the pictures inside (inside a card or on its own) */
.mid>.photos{max-width:860px;margin-left:auto;margin-right:auto}
.photos{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:16px 0}
.photos p{margin:0!important}
.photos img,.photos img.fullscreenall{width:100%!important;height:100%;aspect-ratio:4/3;object-fit:cover;margin:0;border-radius:10px}
p.clear,.clear{clear:both}

/* ---- quotes / testimonials ---- */
blockquote,.testimonial{margin:18px 0;padding:16px 20px 16px 24px;border-left:4px solid var(--c-accent);background:var(--c-cream);border-radius:0 10px 10px 0;font-style:italic}
blockquote p{margin:0 0 .4em}
blockquote cite,.testimonial cite{display:block;font-style:normal;font-weight:700;color:var(--c-head);margin-top:6px}

/* ---- buttons ---- */
.button,button.button,input.button{display:inline-block;background:var(--c-accent);color:#fff!important;border:0;border-radius:999px;padding:11px 24px;
  font:700 1rem/1.2 var(--f-body);letter-spacing:.02em;cursor:pointer;text-decoration:none;box-shadow:0 2px 8px rgba(79,78,36,.25);transition:background .15s,transform .15s}
.button:hover,button.button:hover,input.button:hover{background:var(--c-accent-dark);transform:translateY(-1px)}
#myBtn{background:var(--c-head)!important;color:#fff!important;border-radius:999px!important;padding:10px 16px!important;border:0!important;font:700 14px var(--f-body)!important;box-shadow:var(--shadow)}

/* ---- page title band ---- */
#HeadER h1{font-family:var(--f-head);letter-spacing:.02em}

/* ---- footer: left as the site's own (background picture) ---- */

/* ---- home page banner: one copy of the picture, centred, filling the banner (no tiling) ---- */
.newhomebanner{background-repeat:no-repeat!important;background-position:center center!important;background-size:cover!important}

/* ---- shop: item boxes on the department and shop pages ----
   Pages made by the shop script put the item boxes (.box) straight inside .introtextcgi.
   The area becomes a centred, wrapping row; everything that is not a box keeps a full line. */
.introtextcgi:has(> .box){display:flex;flex-wrap:wrap;justify-content:center;align-items:stretch;gap:22px}
.introtextcgi:has(> .box) > :not(.box){flex:0 0 100%;margin-top:0;margin-bottom:0}
.introtextcgi:has(> .box) > .indentbox{box-sizing:border-box;margin-left:0;margin-right:0;padding-left:27px}
.introtextcgi:has(> .box) > p.clear:empty{display:none}
.introtextcgi > .box{float:none!important;flex:0 1 270px;width:270px!important;min-height:0!important;margin:0!important;padding:0!important;
  background:var(--c-card)!important;border:1px solid var(--c-line)!important;border-radius:var(--radius)!important;box-shadow:var(--shadow);
  overflow:hidden;display:flex;flex-direction:column;text-align:center!important;transition:transform .18s ease,box-shadow .18s ease}
.introtextcgi > .box:hover{transform:translateY(-3px);box-shadow:0 4px 10px rgba(47,58,55,.08),0 16px 36px rgba(47,58,55,.14)}
.introtextcgi > .box > div:first-child{background:#f1efe7;line-height:0}
.introtextcgi > .box > div:first-child img{display:block;width:100%!important;height:250px!important;max-width:none;object-fit:cover;border-radius:0;margin:0;box-shadow:none}
.introtextcgi > .box p{margin:0;padding:14px 18px 0;text-align:center!important;font-size:1rem;line-height:1.45;color:var(--c-text)}
.introtextcgi > .box p:first-of-type{flex:1 1 auto}
.introtextcgi > .box p:first-of-type b,.introtextcgi > .box p:first-of-type i{font-size:.75rem;font-style:normal;font-weight:400;letter-spacing:.08em;text-transform:uppercase;color:var(--c-muted)}
.introtextcgi > .box p:last-of-type{padding:12px 18px 20px}
.introtextcgi > .box p:last-of-type a{text-decoration:none}
.introtextcgi > .box .button{margin:0;padding:10px 22px;font-size:.95rem}
@media (max-width:620px){
  .introtextcgi:has(> .box){gap:16px}
  .introtextcgi > .box{flex:1 1 100%;width:auto!important;max-width:380px}
  .introtextcgi > .box > div:first-child img{height:260px!important}
}

/* ---- phones ---- */
@media (max-width:700px){
  img.halfscreenleft,img.halfscreenright,img.right,img.left{float:none;width:100%!important;max-width:100%;margin:12px 0}
  .photos{grid-template-columns:1fr 1fr;gap:8px}
}

/* ---- phones and tablets: keep everything inside the screen ----
   The site's .introtext box is 95% wide PLUS 36px padding each side, which pushed it past the right edge. */
@media (max-width:799px){
  .introtext{box-sizing:border-box;width:auto!important;max-width:100%;margin-right:0;padding:20px 16px}
  .maincontent img,.mid img,.introtext img{max-width:100%}
  .maincontent img:not([height]),.mid img:not([height]),.introtext img:not([height]){height:auto}
  .maincontent iframe,.maincontent video,.maincontent table{max-width:100%}
  .introtext,.introtext p,.introtext h2,.introtext h3{overflow-wrap:break-word}
}
