/* ===== Shared layout (all three sites). Colours and fonts come from the theme part below. ===== */
html { scroll-behavior: smooth; }
body.sni-design { font-family: var(--font-body); color: var(--c-ink); background: var(--c-bg); -webkit-font-smoothing: antialiased; }
body.sni-design :is(h1, h2, h3, h4) { font-family: var(--font-head); color: var(--c-head); letter-spacing: var(--head-tracking, -0.01em); }
body.sni-design :lang(ja) { --font-body: var(--font-ja); }
body.sni-design :lang(ko) { --font-body: var(--font-ko); }
body.sni-design :lang(zh) { --font-body: var(--font-zh); }
body.sni-design :lang(pa) { --font-body: var(--font-pa); }
body.sni-design :is(:lang(ja), :lang(ko), :lang(zh), :lang(pa)) :is(h1, h2, h3, h4) { font-family: var(--font-head-cjk, var(--font-body)); letter-spacing: 0; }
body.sni-design a { color: var(--c-link); text-underline-offset: 3px; }
body.sni-design a:hover { color: var(--c-link-hover); }
body.sni-design :focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; border-radius: 4px; }
#wrap { overflow-x: clip; }
#top-bar-wrap { display: none; }

/* Header */
body.sni-design #site-header { background: var(--header-bg); border-bottom: var(--header-border); position: sticky; top: 0; z-index: 99; }
body.admin-bar.sni-design #site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar.sni-design #site-header { top: 0; position: relative; } }
body.sni-design #site-logo a.site-logo-text { display: block; width: var(--logo-w); height: var(--logo-h); background: var(--sni-logo) no-repeat left center / contain; font-size: 0 !important; color: transparent !important; }
body.sni-design #site-navigation-wrap .dropdown-menu > li > a { font-family: var(--font-nav, var(--font-body)); color: var(--nav-ink); font-weight: 600; font-size: var(--nav-size, 15px); letter-spacing: var(--nav-tracking, 0); }
body.sni-design #site-navigation-wrap .dropdown-menu > li > a:hover, body.sni-design #site-navigation-wrap .dropdown-menu > li.current-menu-item > a { color: var(--nav-hover); }
body.sni-design #site-navigation-wrap .dropdown-menu > li.sni-menu-cta > a, body.sni-design #site-navigation-wrap .dropdown-menu > li > a[href*="/download"] { background: var(--btn-bg); color: var(--btn-ink); border-radius: var(--btn-radius); padding: 0 18px; line-height: 40px; height: 40px; margin: 16px 0 0 8px; box-shadow: var(--btn-shadow); }
body.sni-design #site-navigation-wrap .dropdown-menu ul.sub-menu { border-top-color: var(--c-accent); border-radius: 0 0 12px 12px; }

body.sni-design #site-header-inner { width: 94%; max-width: 1320px; }
body.sni-design #site-navigation-wrap .dropdown-menu > li > a { padding: 0 11px; }
@media (max-width: 1360px) { body.sni-design #site-navigation-wrap .dropdown-menu > li > a { padding: 0 8px; font-size: 14px; } body.sni-design #site-logo a.site-logo-text { width: calc(var(--logo-w) * .85); } }
body.sni-design .sni-page .sni-note { font-size: 16px !important; }

/* Page frame: designed pages run edge to edge */
body.sni-designed-page #content-wrap { padding-top: 0 !important; padding-bottom: 0 !important; }
body.sni-designed-page #primary, body.sni-designed-page #content { padding: 0 !important; }
body.sni-designed-page .page-header, body.sni-designed-page .site-breadcrumbs { display: none !important; }
.sni-page { --gutter: clamp(20px, 5vw, 48px); }
.sni-page > section { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding: clamp(48px, 8vw, 96px) var(--gutter); }
.sni-hero__inner, .sni-sec__inner { max-width: 1160px; margin: 0 auto; }
.sni-sec--text .sni-sec__inner, .sni-sec--faq .sni-sec__inner, .sni-hero--plain .sni-hero__inner { max-width: 820px; }
.sni-page p, .sni-page li { font-size: 17px; line-height: 1.75; }
.sni-page :is(h2) { font-size: clamp(25.6px, 3.2vw, 36px); line-height: 1.25; margin: 0 0 .8em; }
.sni-page :is(h3) { font-size: 20px; margin: 1.4em 0 .5em; }

/* Hero */
.sni-hero { background: var(--hero-bg); position: relative; }
.sni-hero h1 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.12; margin: 0 0 .5em; }
.sni-hero__text > p:first-of-type { font-size: clamp(17.6px, 1.6vw, 20.8px); color: var(--c-muted); }
.sni-hero--split .sni-hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.sni-hero--plain { padding-top: clamp(40px, 7vw, 80px) !important; padding-bottom: clamp(32px, 5vw, 56px) !important; }
.sni-hero--plain h1 { font-size: clamp(30.4px, 4vw, 44px); }
.sni-hero__media { position: relative; }
.sni-hero__media img, .sni-hero__media video { width: 100%; height: auto; display: block; border-radius: var(--media-radius); box-shadow: var(--media-shadow); aspect-ratio: 4 / 3; object-fit: cover; }
.sni-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 20px; }
@media (max-width: 900px) { .sni-hero--split .sni-hero__inner { grid-template-columns: 1fr; } .sni-hero__media { order: -1; } }

/* Cover hero: picture or video fills the band, text on top */
.sni-hero--cover { color: #fff; min-height: min(80vh, 720px); display: flex; align-items: center; }
.sni-hero--cover::before { content: ""; position: absolute; inset: 0; background: var(--cover-overlay); z-index: 1; }
.sni-hero--cover .sni-hero__inner { width: 100%; position: static; }
.sni-hero--cover .sni-hero__text { position: relative; z-index: 2; }
.sni-hero--cover .sni-hero__media { position: absolute; inset: 0; }
.sni-hero--cover .sni-video { height: 100%; }
.sni-hero--cover .sni-hero__media :is(img, video) { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; object-fit: cover; }
.sni-hero--cover .sni-video__btn { z-index: 3; }
.sni-hero--cover .sni-hero__text { max-width: 760px; }
.sni-hero--cover :is(h1, p, li, strong, a:not(.sni-btn)) { color: #fff !important; }
.sni-hero__media .sni-img--art { box-shadow: none; border-radius: 0; aspect-ratio: auto; object-fit: contain; }
@media (max-width: 900px) { .sni-hero--cover .sni-hero__media { order: 0; } }

/* Buttons */
.sni-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: var(--btn-radius); font-weight: 700; text-decoration: none !important; transition: transform .15s ease, box-shadow .15s ease; }
.sni-btn--primary { background: var(--btn-bg); color: var(--btn-ink) !important; box-shadow: var(--btn-shadow); }
.sni-btn--ghost { background: transparent; color: var(--c-head) !important; border: 2px solid var(--btn-ghost-line); }
.sni-btn:hover { transform: translateY(-2px); }

/* Video */
.sni-video { position: relative; }
.sni-video__btn { position: absolute; right: 14px; bottom: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #1d2a44; cursor: pointer; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.18); padding: 0; }
.sni-video__icon { width: 14px; height: 16px; border-left: 5px solid currentColor; border-right: 5px solid currentColor; box-sizing: border-box; }
.sni-video__btn.is-paused .sni-video__icon { width: 0; height: 0; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent currentColor; margin-left: 4px; }

/* Sections */
.sni-sec:nth-of-type(even) { background: var(--sec-alt); }
.sni-sec--media .sni-sec__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.sni-sec--flip .sni-sec__media { order: -1; }
.sni-sec__media { margin: 0; }
.sni-sec__media img { width: 100%; height: auto; border-radius: var(--media-radius); box-shadow: var(--media-shadow); aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.sni-sec__media .sni-img--art { box-shadow: none; aspect-ratio: auto; object-fit: contain; }
@media (max-width: 900px) { .sni-sec--media .sni-sec__inner { grid-template-columns: 1fr; } .sni-sec--flip .sni-sec__media { order: 0; } }
.sni-sec--band { background: var(--band-bg) !important; color: var(--band-ink); }
.sni-sec--band :is(h2, h3, p, li, a) { color: var(--band-ink); }

/* Numbered steps (any ordered list on a designed page) */
.sni-page ol { list-style: none; counter-reset: sni-step; padding: 0; margin: 1.5em 0; display: grid; gap: 14px; }
.sni-page ol > li { counter-increment: sni-step; position: relative; padding: 18px 20px 18px 72px; background: var(--card-bg); border: 1px solid var(--c-line); border-radius: var(--card-radius); box-shadow: var(--card-shadow); }
.sni-page ol > li::before { content: counter(sni-step); position: absolute; left: 18px; top: 16px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--step-bg); color: var(--step-ink); font-family: var(--font-head); }

/* Cards */
.sni-page ul.sni-cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin: 1.5em 0; }
.sni-page ul.sni-cards > li { background: var(--card-bg); border: 1px solid var(--c-line); border-radius: var(--card-radius); padding: 24px; box-shadow: var(--card-shadow); }
.sni-page ul.sni-cards > li > strong:first-child { display: block; font-family: var(--font-head); font-size: 18.4px; color: var(--c-head); margin-bottom: 6px; }
.sni-page ul.sni-cards > li::before { content: ""; display: block; width: var(--card-icon-w, 40px); height: var(--card-icon-h, 40px); border-radius: var(--card-icon-radius, 12px); background: var(--card-icon); margin-bottom: 14px; }

/* Feature tiles */
.sni-page ul.sni-tiles { list-style: none; padding: 0; margin: 1.5em 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.sni-tile { background: var(--card-bg); border: 1px solid var(--c-line); border-radius: var(--card-radius); box-shadow: var(--card-shadow); overflow: hidden; }
.sni-tile__img { background: var(--tile-img-bg, transparent); }
.sni-tile__img img { width: 100%; height: auto; display: block; aspect-ratio: 3 / 2; object-fit: cover; }
.sni-tile__img .sni-img--art { object-fit: contain; }
.sni-tile > p { padding: 20px 22px 24px; margin: 0; }
.sni-tile > p > strong:first-child { display: block; font-family: var(--font-head); font-size: 19.2px; color: var(--c-head); margin-bottom: 6px; }
.sni-hero--wide .sni-hero__inner { display: block; }
.sni-hero--wide .sni-hero__media { margin-top: 36px; }

/* Job tiles */
.sni-page ul.sni-jobs { list-style: none; padding: 0; margin: 1.5em 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sni-jobs__item { position: relative; border-radius: var(--media-radius); overflow: hidden; background: var(--card-bg); box-shadow: var(--card-shadow); }
.sni-jobs__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.sni-jobs__label { display: block; padding: 12px 14px; font-weight: 700; font-size: 15.68px; line-height: 1.35; }
@media (max-width: 900px) { .sni-page ul.sni-jobs { grid-template-columns: repeat(2, 1fr); } }

/* Questions */
.sni-faq { background: var(--card-bg); border: 1px solid var(--c-line); border-radius: var(--card-radius); margin: 0 0 12px; box-shadow: var(--card-shadow); }
.sni-faq summary { cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 700; font-size: 17.28px; list-style: none; position: relative; color: var(--c-head); }
.sni-faq summary::-webkit-details-marker { display: none; }
.sni-faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--c-accent-strong); }
.sni-faq[open] summary::after { content: "–"; }
.sni-faq__a { padding: 0 22px 8px; }

/* Gallery */
.sni-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 28px; }
.sni-gallery figure { margin: 0; }
.sni-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--media-radius); display: block; }

/* Tables and notes */
.sni-page table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--c-line); border-radius: var(--card-radius); overflow: hidden; background: var(--card-bg); margin: 1.5em 0; }
.sni-page th { background: var(--table-head); color: var(--c-head); font-weight: 700; }
.sni-page :is(th, td) { padding: 14px 16px; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.sni-page tr:last-child > * { border-bottom: 0; }
@media (max-width: 700px) { .sni-page table { display: block; overflow-x: auto; } }
.sni-page .sni-note, .sni-page .sni-ac-note { background: var(--note-bg); border-left: 4px solid var(--c-accent-strong); padding: 14px 18px; border-radius: 0 12px 12px 0; color: var(--c-ink); font-size: 15.68px; }

/* Forms */
body.sni-design :is(input[type=text], input[type=email], input[type=tel], input[type=search], input[type=url], input[type=number], select, textarea) { border: 1.5px solid var(--c-line-strong); border-radius: var(--input-radius); min-height: 48px; padding: 10px 14px; font-size: 16px; background: #fff; color: var(--c-ink); }
body.sni-design :is(input, select, textarea):focus { border-color: var(--c-accent-strong); box-shadow: 0 0 0 3px var(--c-focus-soft); outline: none; }
:where(.sni-page form, .wpcf7-form) :where(button[type=submit], input[type=submit], .wpcf7-submit) { background: var(--btn-bg); color: var(--btn-ink) !important; border: 0; border-radius: var(--btn-radius); min-height: 48px; padding: 0 24px; font-weight: 700; box-shadow: var(--btn-shadow); cursor: pointer; }

/* Footer */
body.sni-design .sni-site-footer { background: var(--footer-bg) !important; color: var(--footer-ink) !important; }
body.sni-design .sni-site-footer a { color: var(--footer-link) !important; }
body.sni-design .sni-site-footer__company { color: var(--footer-muted) !important; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .sni-btn, .sni-btn:hover { transition: none; transform: none; } }

/* Narrower screens: the menu moves behind the menu button before it would wrap */
@media (max-width: 1280px) and (min-width: 960px) {
	body.sni-design #site-navigation-wrap { display: none !important; }
	body.sni-design .oceanwp-mobile-menu-icon { display: block !important; float: right; }
	body.sni-design .oceanwp-mobile-menu-icon a { line-height: 74px; color: var(--nav-ink); font-weight: 600; }
}
body.sni-design #mobile-dropdown { background: var(--header-bg); }
body.sni-design #mobile-dropdown ul li a { color: var(--nav-ink); font-family: var(--font-nav, var(--font-body)); font-weight: 600; }

/* Line breaks that respect words in Japanese and Korean */
body.sni-design :lang(ja) :is(h1, h2, h3, .sni-btn) { word-break: auto-phrase; }
body.sni-design :lang(ko) { word-break: keep-all; }
@media (max-width: 900px) {
	.sni-hero__media img, .sni-hero__media video { max-height: 46vh; }
	.sni-hero__media img.sni-img--art { object-fit: contain; }
	.sni-hero--cover .sni-hero__media :is(img, video) { max-height: none; }
	.sni-hero--split .sni-hero__media::before { inset: 12px -8px -12px 8px !important; }
}
/* ===== Purrfect Island: soft, cosy island colours and rounded shapes. Text colours meet WCAG 2.2 AA. ===== */
:root {
	--c-bg: #FFF9EC; --c-ink: #4A3426; --c-head: #5B3A21; --c-muted: #6B5545;
	--c-link: #1D7A6E; --c-link-hover: #B44A35; --c-focus: #1D7A6E; --c-focus-soft: rgba(94, 196, 214, .4);
	--c-line: #F0E0BF; --c-line-strong: #E2C995; --c-accent: #FFD45C; --c-accent-strong: #E0A92E;
	--font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	--font-head: 'Fredoka', 'Nunito', system-ui, sans-serif; --head-tracking: 0;
	--font-head-cjk: 'M PLUS Rounded 1c', 'Hiragino Maru Gothic ProN', 'Hiragino Sans', sans-serif;
	--font-ja: 'Hiragino Maru Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', 'Yu Gothic', Meiryo, sans-serif;
	--font-ko: 'Apple SD Gothic Neo', sans-serif; --font-zh: 'PingFang SC', sans-serif; --font-pa: 'Noto Sans Gurmukhi', sans-serif;
	--header-bg: #FFFDF6; --header-border: 0;
	--logo-w: 190px; --logo-h: 52px; --nav-ink: #5B3A21; --nav-hover: #1D7A6E; --nav-size: 16px;
	--btn-bg: #FFD45C; --btn-ink: #4A3426; --btn-radius: 999px; --btn-shadow: 0 5px 0 #E0A92E; --btn-ghost-line: #9BD77C;
	--hero-bg: linear-gradient(180deg, #BDE8FA 0%, #E3F6FD 55%, #FFF9EC 100%);
	--media-radius: 32px; --media-shadow: 0 8px 0 rgba(74, 52, 38, .08);
	--sec-alt: #EEF8E6; --card-bg: #FFFDF7; --card-radius: 28px; --card-shadow: 0 6px 0 #F0E0BF;
	--step-bg: #FFD45C; --step-ink: #4A3426;
	--card-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='%23E58A3A'%3E%3Cellipse cx='20' cy='26' rx='9' ry='8'/%3E%3Ccircle cx='9' cy='16' r='4'/%3E%3Ccircle cx='16' cy='10' r='4'/%3E%3Ccircle cx='24' cy='10' r='4'/%3E%3Ccircle cx='31' cy='16' r='4'/%3E%3C/g%3E%3C/svg%3E") center / 26px no-repeat, #FFE9C2;
	--card-icon-radius: 50%; --tile-img-bg: #FFF4DA;
	--table-head: #FFEFC9; --note-bg: #FFF2D6; --input-radius: 16px;
	--band-bg: #5EC4D6; --band-ink: #1F2D33;
	--cover-overlay: rgba(0, 0, 0, .2);
	--footer-bg: #5B3A21; --footer-ink: #FFF3DD; --footer-link: #FFE9A8; --footer-muted: #F3DCC0;
}
body.sni-design #site-header { box-shadow: 0 6px 0 #9BD77C; }
body.sni-design #site-navigation-wrap .dropdown-menu > li > a[href*="/store"] { background: #FFD45C; color: #4A3426; border-radius: 999px; padding: 0 18px; line-height: 40px; height: 40px; margin: 16px 0 0 8px; box-shadow: 0 4px 0 #E0A92E; }
.sni-hero h1, .sni-page h2 { font-weight: 700; }
.sni-hero h1 { color: #5B3A21; text-shadow: 0 3px 0 #fff; }
.sni-page h2 { display: inline-block; background: #fff; padding: 10px 26px 12px; border-radius: 999px; box-shadow: 0 5px 0 #F0E0BF; font-size: clamp(22.4px, 2.6vw, 30.4px); }
.sni-sec { position: relative; }
.sni-sec:nth-of-type(even)::before { content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 24px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24' preserveAspectRatio='none'%3E%3Cpath d='M0 24 Q15 0 30 12 T60 12 T90 12 T120 12 V24Z' fill='%23EEF8E6'/%3E%3C/svg%3E") repeat-x; background-size: 120px 24px; }
.sni-sec:nth-of-type(even) + .sni-sec::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 24px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24' preserveAspectRatio='none'%3E%3Cpath d='M0 0 Q15 24 30 12 T60 12 T90 12 T120 12 V0Z' fill='%23EEF8E6'/%3E%3C/svg%3E") repeat-x; background-size: 120px 24px; }
.sni-page ol > li, .sni-page ul.sni-cards > li, .sni-faq { border-width: 3px; }
.sni-btn--ghost { background: #fff; box-shadow: 0 5px 0 #9BD77C; border: 0; }
.sni-hero__media img.sni-img--art { filter: drop-shadow(0 10px 0 rgba(74, 52, 38, .08)); border-radius: 40px; }
.sni-tile__img img.sni-img--art { padding: 14px; }
