/*
Theme Name: Kasih Celebrations
Theme URI: https://kasihcelebrations.com
Author: Kasih Celebrations
Description: Custom theme for the Kasih Celebrations website. Home page copy lives in inc/content.php; ordinary pages are edited in WordPress.
Version: 1.3.2
Requires PHP: 7.4
Text Domain: kasih
*/

/* ------------------------------------------------------------------
   Fonts (self-hosted, SIL Open Font License)
   ------------------------------------------------------------------ */
/* editor:start tokens */
@font-face { font-family: "Libre Bodoni"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/libre-bodoni-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Libre Bodoni"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/libre-bodoni-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/instrument-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/instrument-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/instrument-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Pinyon Script"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/pinyon-script-latin-400-normal.woff2") format("woff2"); }

/* ------------------------------------------------------------------
   Tokens
   Ivory paper, near-black ink, muted mulberry for the one action.
   Rose (logo) and gold are accents only.
   ------------------------------------------------------------------ */
:root {
	--ivory: #FBFAF7;
	--paper: #F4F1EC;
	--field: #F1EDE6;
	--ink: #241D20;
	--ink-2: #5F5659;
	--stone: #CFC8C2;
	--gold-text: #7D6230;
	--gold: #C9A86A;
	--doc-ink: #222222;
	--doc-grey: #666666;
	--doc-rule: #C2BDB6;
	--rose: #CD7F7F;
	--cta: #5A3A44;
	--cta-hover: #452C34;
	--rule: #241D20;
	--rule-soft: rgba(36, 29, 32, 0.14);

	--serif: "Libre Bodoni", "Bodoni Moda", "Didot", Georgia, serif;
	--sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

	--wrap: 1240px;
	--gutter: clamp(20px, 4vw, 48px);
	--section: clamp(72px, 9vw, 120px);
	--ease: cubic-bezier(0.16, 1, 0.3, 1);

	--grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .25 0 0 0 .6 -.22'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}
/* editor:end tokens */

/* ------------------------------------------------------------------
   Base
   ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; scrollbar-color: var(--stone) var(--ivory); }
body {
	margin: 0;
	background: var(--ivory);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	caret-color: var(--cta);
	overflow-x: clip;
}
::selection { background: rgba(205, 127, 127, 0.3); color: var(--ink); }
img, svg { display: block; max-width: 100%; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--cta); outline-offset: 3px; }
button { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; background: var(--ink); color: var(--ivory); padding: 10px 14px; }
.skip:focus { top: 12px; }
.icon { flex: none; }

/* Type */
.display {
	font-family: var(--serif);
	font-style: italic;
	font-size: clamp(2.375rem, 1.7rem + 2vw, 3.25rem);
	line-height: 1.04;
	letter-spacing: -0.015em;
	text-wrap: balance;
}
.hero .display span { display: block; }
.heading {
	font-family: var(--serif);
	font-style: italic;
	font-size: clamp(2rem, 1.55rem + 1.6vw, 2.875rem);
	line-height: 1.08;
	letter-spacing: -0.01em;
	text-wrap: balance;
	margin-bottom: 0.7em;
}
.subheading { font-family: var(--serif); font-style: italic; font-size: 1.4rem; line-height: 1.15; margin-bottom: 0.4em; }
.lede { font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); max-width: 34ch; }
.fine { font-size: 0.9375rem; color: var(--ink-2); }

/* Actions */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 32px; }
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 14px 22px;
	border: 1px solid transparent;
	font-family: var(--sans); font-weight: 500; font-size: 0.9375rem; letter-spacing: 0.01em;
	text-decoration: none; line-height: 1.2;
	transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn--solid { background: var(--cta); color: #fff; }
.btn--solid:hover { background: var(--cta-hover); }
.btn--line { border-color: var(--ink); color: var(--ink); min-height: 44px; padding: 10px 16px; font-size: 0.875rem; }
.btn--line:hover { background: var(--ink); color: var(--ivory); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500; font-size: 0.9375rem; text-decoration: underline; text-decoration-color: var(--rule-soft); }
.link-arrow:hover { text-decoration-color: currentColor; }

/* Paper field with grain: header, hero and closing */
.field, .site-header { background-color: var(--field); background-image: var(--grain); background-size: 300px 300px; }

/* ------------------------------------------------------------------
   Header
   ------------------------------------------------------------------ */
.site-header { position: relative; z-index: 5; }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 80px; }
.brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; margin-right: auto; }
.logo-img { height: 46px; width: auto; }
.brand__script { font-family: var(--serif); font-style: italic; font-size: 1.75rem; color: var(--rose); }
.brand__caps { font-size: 0.6875rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold-text); margin-top: 4px; }
.site-nav__toggle { display: none; }
.site-nav__list { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.site-nav__list a { display: inline-block; font-size: 0.875rem; text-decoration: none; padding: 12px 0; border-bottom: 1px solid transparent; }
.site-nav__list a:hover { border-bottom-color: var(--ink); }

@media (max-width: 1023px) {
	.site-nav { order: 3; }
	.site-nav__toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; background: none; border: 0; padding: 0 4px; cursor: pointer; font-size: 0.875rem; }
	.site-nav__list { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--ivory); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 16px; }
	.site-nav__list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule-soft); font-size: 1rem; }
	.site-nav.is-open .site-nav__list { display: flex; }
}
@media (max-width: 599px) {
	.site-header__cta span { display: none; }
	.site-header__cta { width: 44px; padding: 0; }
	.site-header__inner { gap: 12px; min-height: 68px; }
	.logo-img { height: 30px; }
}

/* ------------------------------------------------------------------
   Hero and screen switcher
   ------------------------------------------------------------------ */
.hero { padding: clamp(24px, 4vw, 48px) 0 clamp(56px, 7vw, 88px); }
.hero__grid { display: grid; gap: 40px; align-items: center; }
.hero__grid > * { min-width: 0; }
.hero__copy .lede { margin-top: 24px; }
@media (min-width: 1024px) {
	.switcher__bar { justify-content: center; }
	.switcher__stage { justify-content: center; }
	.switcher__caption { text-align: center; justify-items: center; }
	.hero__grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.45fr); gap: clamp(40px, 5vw, 80px); min-height: min(700px, calc(100svh - 120px)); }
}

.switcher { margin: 0; }
.switcher__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 18px; }
.switcher__label { font-size: 0.875rem; color: var(--ink-2); }
.switcher__control { display: inline-flex; border: 1px solid var(--ink); }
.switcher__control button {
	appearance: none; background: transparent; border: 0; cursor: pointer;
	min-height: 44px; padding: 0 18px; font-size: 0.875rem; font-weight: 500;
	box-shadow: inset 0 -2px 0 transparent;
	transition: background-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.switcher__control button + button { border-left: 1px solid var(--ink); }
.switcher__control button[aria-pressed="true"] { background: var(--ink); color: var(--ivory); }
.switcher__control button:not([aria-pressed="true"]):hover { background: rgba(36, 29, 32, 0.06); }

.switcher__stage { position: relative; width: 100%; height: clamp(460px, 64vw, 620px); display: flex; align-items: center; justify-content: flex-start; }
@media (min-width: 1024px) { .switcher__stage { justify-content: center; } }
.device {
	position: relative; flex: none;
	width: var(--fw, 252px); height: var(--fh, 530px); max-width: 100%;
	border: 1px solid var(--ink);
	padding: var(--bezel, 7px);
	background: var(--ivory);
	border-radius: var(--radius, 30px);
	transition: width 0.6s var(--ease), height 0.6s var(--ease), border-radius 0.6s var(--ease);
}
.device::after {
	content: ""; position: absolute; left: 50%; bottom: -15px; width: 106%; height: 14px;
	border: 1px solid var(--ink); border-top: 0; background: var(--paper);
	transform: translateX(-50%) scaleX(var(--base, 0)); transform-origin: center;
	opacity: var(--base, 0);
	transition: transform 0.6s var(--ease), opacity 0.4s var(--ease);
}
.device__screen { position: relative; width: 100%; height: 100%; overflow: hidden; background: #EEF0E7; border-radius: calc(var(--radius, 30px) - 6px); transition: border-radius 0.6s var(--ease); container-type: inline-size; }
.switcher__caption { margin-top: 28px; display: grid; gap: 4px; }
.switcher__note { font-family: var(--serif); font-style: italic; font-size: 1.0625rem; line-height: 1.4; }
.switcher__fine { font-size: 0.8125rem; color: var(--ink-2); }

/* ------------------------------------------------------------------
   Sample invitation (a client's design, not the brand's)
   Layouts are drawn at real device sizes and scaled by site.js
   ------------------------------------------------------------------ */
.inv {
	position: absolute; left: 0; top: 0;
	transform-origin: 0 0;
	transform: scale(var(--s, 0.5));
	background: #EEF0E7; color: #2F3A31;
	font-family: var(--serif); text-align: center;
	opacity: 0; visibility: hidden;
	transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}
.switcher[data-device="phone"] .inv--phone,
.switcher[data-device="tablet"] .inv--tablet,
.switcher[data-device="laptop"] .inv--laptop { opacity: 1; visibility: visible; transition: opacity 0.45s ease 0.15s, visibility 0s; }
.inv p { margin: 0; }
.inv__kicker { font-size: 13px; letter-spacing: 0.32em; text-transform: uppercase; color: #56624F; }
.inv__names { font-family: "Pinyon Script", cursive; line-height: 1; color: #2F3A31; }
.inv__names--stack { display: flex; flex-direction: column; align-items: center; }
.inv__amp { font-family: var(--serif); font-style: italic; color: #A88B4E; }
.inv__archbox { position: relative; margin-inline: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.inv__arch { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #B69A5B; stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.inv__btn { display: inline-block; background: #2F3A31; color: #EEF0E7; font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; padding: 15px 28px; }
.inv__btn--line { background: transparent; color: #2F3A31; border: 1px solid #2F3A31; }
.inv__label { font-family: var(--sans); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: #56624F; margin-bottom: 8px !important; }
.inv__detail { font-size: 19px; line-height: 1.45; }
.inv__invite { font-style: italic; font-size: 17px; line-height: 1.5; color: #4A564B; }
.inv__count { display: flex; justify-content: center; gap: 0; }
.inv__count span { display: flex; flex-direction: column; align-items: center; font-family: var(--sans); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: #56624F; padding: 0 22px; }
.inv__count span + span { border-left: 1px solid #C9CFBF; }
.inv__count b { font-family: var(--serif); font-weight: 400; font-size: 34px; letter-spacing: 0; color: #2F3A31; line-height: 1.1; }
.inv__nav span, .inv__tabbar span { font-family: var(--sans); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: #4A564B; }

/* Phone 390 x 844 */
.inv--phone { width: 390px; height: 844px; padding: 64px 34px 0; display: flex; flex-direction: column; align-items: center; }
.inv--phone .inv__archbox { width: 296px; height: 356px; margin-top: 22px; padding-top: 40px; }
.inv--phone .inv__names { font-size: 62px; }
.inv--phone .inv__amp { font-size: 30px; margin: 4px 0; }
.inv--phone .inv__date { font-size: 26px; letter-spacing: 0.08em; margin-top: 30px; }
.inv--phone .inv__meta { font-size: 15px; line-height: 1.5; margin-top: 10px; color: #4A564B; }
.inv--phone .inv__btn { width: 100%; margin-top: 30px; }
.inv--phone .inv__row { display: flex; width: 100%; margin-top: 10px; }
.inv--phone .inv__row span { flex: 1; border: 1px solid #2F3A31; padding: 12px 0; font-family: var(--sans); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; }
.inv--phone .inv__row span + span { border-left: 0; }
.inv--phone .inv__tabbar { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; display: flex; justify-content: space-around; align-items: center; border-top: 1px solid #C9CFBF; background: #E6E9DE; }

/* Tablet 768 x 1024 */
.inv--tablet { width: 768px; height: 1024px; padding: 0 64px; display: flex; flex-direction: column; align-items: center; }
.inv--tablet .inv__nav { width: calc(100% + 128px); display: flex; justify-content: center; gap: 30px; padding: 22px 0; border-bottom: 1px solid #C9CFBF; margin-bottom: 48px; }
.inv--tablet .inv__archbox { width: 560px; height: 380px; margin-top: 22px; padding: 120px 60px 0; justify-content: flex-start; }
.inv--tablet .inv__invite { max-width: 340px; }
.inv--tablet .inv__names { font-size: 64px; margin-top: 22px; white-space: nowrap; }
.inv--tablet .inv__amp { font-size: 40px; padding: 0 6px; }
.inv--tablet .inv__cols { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-top: 1px solid #C9CFBF; border-bottom: 1px solid #C9CFBF; margin-top: 44px; }
.inv--tablet .inv__cols > div { padding: 28px 16px; }
.inv--tablet .inv__cols > div + div { border-left: 1px solid #C9CFBF; }
.inv--tablet .inv__count { margin-top: 40px; }
.inv--tablet .inv__btns { display: flex; gap: 12px; margin-top: 40px; }
.inv--tablet .inv__btns .inv__btn { min-width: 190px; }

/* Laptop 1280 x 800 */
.inv--laptop { width: 1280px; height: 800px; text-align: left; }
.inv--laptop .inv__nav { height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 48px; border-bottom: 1px solid #C9CFBF; }
.inv--laptop .inv__mono { font-style: italic; font-size: 24px; color: #2F3A31; letter-spacing: 0; text-transform: none; font-family: var(--serif); }
.inv--laptop .inv__navlinks { display: flex; gap: 34px; }
.inv--laptop .inv__split { display: grid; grid-template-columns: 540px 1fr; height: 732px; }
.inv--laptop .inv__panel { background: #E1E6D8; display: flex; align-items: center; justify-content: center; border-right: 1px solid #C9CFBF; }
.inv--laptop .inv__archbox { width: 380px; height: 560px; padding-top: 70px; }
.inv--laptop .inv__kicker { margin-bottom: 36px; }
.inv--laptop .inv__names { font-size: 96px; }
.inv--laptop .inv__amp { font-size: 44px; margin: 6px 0; }
.inv--laptop .inv__body { padding: 72px 88px 0; }
.inv--laptop .inv__invite { max-width: 460px; font-size: 19px; }
.inv--laptop .inv__bigdate { font-size: 54px; line-height: 1.05; margin-top: 22px; letter-spacing: -0.01em; }
.inv--laptop .inv__list { margin: 34px 0 0; border-top: 1px solid #C9CFBF; max-width: 540px; }
.inv--laptop .inv__list div { display: grid; grid-template-columns: 120px 1fr; padding: 14px 0; border-bottom: 1px solid #C9CFBF; font-size: 18px; }
.inv--laptop .inv__list dt { font-family: var(--sans); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: #56624F; padding-top: 5px; }
.inv--laptop .inv__list dd { margin: 0; }
.inv--laptop .inv__count { justify-content: flex-start; margin-top: 34px; }
.inv--laptop .inv__count span:first-child { padding-left: 0; }
.inv--laptop .inv__btns { display: flex; gap: 12px; margin-top: 34px; }

/* Sample controls are real buttons */
.inv button { appearance: none; border: 0; background: none; cursor: pointer; font: inherit; color: inherit; padding: 0; }
.inv .inv__btn { background: #2F3A31; color: #EEF0E7; font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; padding: 15px 28px; }
.inv .inv__btn--line { background: transparent; color: #2F3A31; border: 1px solid #2F3A31; }
.inv .inv__btn:hover { background: #222B24; }
.inv .inv__btn--line:hover { background: #E3E7DA; }
.inv .inv__tab { font-family: var(--sans); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: #4A564B; padding: 6px 2px !important; }
.inv .inv__tab:hover { color: #2F3A31; text-decoration: underline; text-underline-offset: 6px; }
.inv--phone .inv__row button { flex: 1; border: 1px solid #2F3A31; padding: 12px 0; font-family: var(--sans); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; }
.inv--phone .inv__row button + button { border-left: 0; }
.inv--laptop .inv__navlinks { display: flex; gap: 30px; }

/* ------------------------------------------------------------------
   Sample pages that open inside the device
   ------------------------------------------------------------------ */
.sheet { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; background: rgba(47, 58, 49, 0.28); font-size: clamp(11px, 4.6cqi, 15px); }
.sheet[hidden] { display: none; }
.sheet__panel {
	width: min(100%, 460px); max-height: 86%; overflow: auto;
	background: #EEF0E7; color: #2F3A31; border-top: 1px solid #B69A5B;
	padding: 1.1em 1.3em 1.4em; font-family: var(--serif);
	animation: sheet-in 0.35s var(--ease);
}
@keyframes sheet-in { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.8em; }
.sheet__title { font-family: var(--sans); font-size: 0.8em; letter-spacing: 0.24em; text-transform: uppercase; color: #56624F; margin: 0; }
.sheet__close { appearance: none; border: 1px solid #C9CFBF; background: none; width: 2.4em; height: 2.4em; min-width: 32px; min-height: 32px; font-size: 1.1em; line-height: 1; cursor: pointer; color: #2F3A31; }
.sheet__body { display: none; }
.sheet__body.is-active { display: block; }
.sheet__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #C9CFBF; }
.sheet__list li { display: grid; grid-template-columns: 7.5em 1fr; gap: 0.6em; padding: 0.6em 0; border-bottom: 1px solid #C9CFBF; }
.sheet__list li span:first-child { font-family: var(--sans); font-size: 0.85em; color: #56624F; padding-top: 0.1em; }
.sheet__lead { font-size: 1.15em; line-height: 1.4; margin-bottom: 0.8em; }
.sheet__fine { font-family: var(--sans); font-size: 0.82em; color: #56624F; line-height: 1.45; }
.sheet__map { height: 6.5em; margin-bottom: 0.8em; border: 1px solid #C9CFBF; background:
	linear-gradient(90deg, transparent 48%, #D7DCCD 48%, #D7DCCD 52%, transparent 52%),
	linear-gradient(0deg, transparent 58%, #D7DCCD 58%, #D7DCCD 61%, transparent 61%), #E6E9DE; position: relative; }
.sheet__map span { position: absolute; left: 50%; top: 40%; width: 0.9em; height: 0.9em; border-radius: 50% 50% 50% 0; background: #2F3A31; transform: translate(-50%, -50%) rotate(-45deg); }
.sheet__wishes { list-style: none; margin: 0; padding: 0; }
.sheet__wishes li { padding: 0.7em 0; border-bottom: 1px solid #C9CFBF; }
.sheet__wishes p { font-style: italic; margin: 0 0 0.2em; line-height: 1.4; }
.sheet__wishes span { font-family: var(--sans); font-size: 0.82em; color: #56624F; }
.sheet__form { display: grid; gap: 0.9em; font-family: var(--sans); }
.sheet__field { display: grid; gap: 0.35em; border: 0; margin: 0; padding: 0; font-size: 0.9em; }
.sheet__field > span, .sheet__field legend, .sheet__stepper > span { font-size: 0.78em; letter-spacing: 0.2em; text-transform: uppercase; color: #56624F; padding: 0; }
.sheet__field input[type="text"] { font: inherit; font-size: max(16px, 1em); padding: 0.55em 0.7em; border: 1px solid #9AA595; background: #F6F7F1; color: #2F3A31; border-radius: 0; width: 100%; }
.sheet__field input[type="text"]:focus-visible { outline: 2px solid #2F3A31; outline-offset: 1px; }
.sheet__field input[aria-invalid="true"] { border-color: #8E3B3B; }
.sheet__error { color: #8E3B3B; font-size: 0.82em; margin: -0.5em 0 0; }
.sheet__choice { display: flex; flex-wrap: wrap; gap: 0.4em 1.2em; }
.sheet__choice legend { width: 100%; margin-bottom: 0.35em; }
.sheet__choice label { display: inline-flex; align-items: center; gap: 0.45em; min-height: 44px; cursor: pointer; }
.sheet__choice input { accent-color: #2F3A31; width: 1.1em; height: 1.1em; }
.sheet__stepper div { display: inline-flex; align-items: center; border: 1px solid #9AA595; width: max-content; }
.sheet__stepper button { appearance: none; border: 0; background: none; width: 2.6em; height: 2.4em; min-width: 44px; min-height: 44px; font-size: 1.1em; cursor: pointer; color: #2F3A31; }
.sheet__stepper output { min-width: 2.2em; text-align: center; font-family: var(--serif); font-size: 1.15em; }
.inv__btn.sheet__submit, .sheet .inv__btn { background: #2F3A31; color: #EEF0E7; border: 0; font-family: var(--sans); font-size: 0.82em; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; padding: 1em 1.4em; cursor: pointer; }
.sheet__bridge { width: min(100%, 460px); background: var(--ink); color: var(--ivory); padding: 0.8em 1.3em; font-family: var(--sans); font-size: 0.85em; line-height: 1.45; display: grid; gap: 0.25em; }
.sheet__bridge[hidden] { display: none; }
.sheet__bridge p { margin: 0; }
.sheet__bridge a { color: var(--ivory); font-weight: 500; text-decoration-color: rgba(251, 250, 247, 0.5); }

/* ------------------------------------------------------------------
   Sections
   ------------------------------------------------------------------ */
.section { padding: var(--section) 0; }
.section--paper { background: var(--paper); }
.section--rule { border-top: 1px solid var(--rule-soft); }
.section__head { display: grid; gap: 8px 64px; margin-bottom: clamp(32px, 4vw, 56px); }
.section__head p { max-width: 46ch; color: var(--ink-2); }
@media (min-width: 900px) {
	.section__head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
	.section__head .heading { margin-bottom: 0; }
}

/* Our work: ruled display cabinet */
.cabinet { border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.cabinet__row { display: grid; grid-template-columns: 1fr; }
.cabinet__cell { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: clamp(18px, 2.4vw, 32px); }
.cabinet__cell--desktop img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.cabinet__cell--phone { display: flex; align-items: center; justify-content: center; background: var(--paper); }
.cabinet__cell--phone img { width: min(100%, 168px); aspect-ratio: 390 / 844; object-fit: cover; border-radius: 14px; }
.cabinet__cell--text { display: flex; flex-direction: column; justify-content: flex-end; }
.cabinet__names { font-family: var(--serif); font-style: italic; font-size: 1.6rem; line-height: 1.1; }
.cabinet__type { font-size: 0.875rem; color: var(--gold-text); margin: 6px 0 12px; }
.cabinet__cell--text p:last-child { color: var(--ink-2); font-size: 0.9875rem; max-width: 40ch; }
.cabinet__row--text .cabinet__cell--text { justify-content: flex-start; }
.work__foot { display: grid; gap: 16px 64px; margin-top: 32px; }
.events__title { font-size: 0.875rem; color: var(--ink-2); margin: 0 0 6px; }
.events { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 1.4em; max-width: 62ch; }
.events li { font-family: var(--serif); font-style: italic; font-size: 1.125rem; line-height: 1.5; }

.work__foot p { margin: 0; max-width: 58ch; }
.work__demo { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; color: var(--ink); }
@media (max-width: 639px) {
	.cabinet__row { grid-template-columns: minmax(0, 1.75fr) minmax(0, 0.75fr); }
	.cabinet__cell--text { grid-column: 1 / -1; }
	.cabinet__cell--desktop, .cabinet__cell--phone { padding: 14px; }
	.cabinet__cell--phone img { width: min(100%, 96px); }
}
@media (min-width: 640px) and (max-width: 979px) {
	.cabinet__row { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
	.cabinet__cell--desktop { grid-column: 1 / -1; }
}
@media (min-width: 980px) {
	.cabinet__row { grid-template-columns: minmax(0, 2.4fr) minmax(0, 0.8fr) minmax(0, 1.3fr); }
	.cabinet__row--flip { grid-template-columns: minmax(0, 1.3fr) minmax(0, 2.4fr) minmax(0, 0.8fr); }
	.cabinet__row--flip .cabinet__cell--text { order: -1; }
	.work__foot { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
}


/* Placeholder frame until a screenshot is supplied */
.placeholder {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
	width: 100%; border: 1px solid var(--rule-soft); background: var(--ivory);
	font-size: 0.8125rem; color: var(--ink-2); text-align: center; padding: 12px;
}
.placeholder span:first-child { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--ink); }
.cabinet__cell--desktop .placeholder { aspect-ratio: 16 / 10; }
.cabinet__cell--phone .placeholder { width: min(100%, 168px); aspect-ratio: 390 / 844; border-radius: 14px; }
@media (max-width: 639px) {
	.cabinet__cell--phone .placeholder { width: min(100%, 96px); }
}

/* Real demo site inside the device */
.inv--frame { padding: 0 !important; display: block !important; background: #fff; }
.inv--frame iframe { display: block; border: 0; width: 100%; height: 100%; }

/* What makes us different: the comparison */
.compare { display: grid; gap: 32px 48px; margin-bottom: clamp(40px, 5vw, 64px); }
.compare__fig { margin: 0; }
.compare__svg { width: 100%; height: auto; }
.compare__fig figcaption { margin-top: 14px; font-size: 0.875rem; color: var(--ink-2); max-width: 40ch; }
.compare__fig--ours figcaption { color: var(--ink); }
.cv-body { fill: var(--ivory); stroke: var(--ink); stroke-width: 1; }
.cv-screen { fill: #ECE9E3; stroke: var(--ink); stroke-width: 0.75; }
.cv-screen--ours { fill: var(--ivory); }
.cv-hatch { stroke: var(--stone); stroke-width: 1; }
.cv-card rect:first-child { fill: var(--ivory); stroke: var(--ink); stroke-width: 0.75; }
.cv-panel { fill: var(--paper); stroke: var(--ink); stroke-width: 0.5; }
.cv-arch { fill: none; stroke: var(--gold); stroke-width: 1.25; }
.cv-arch--in { stroke-width: 0.75; }
.cv-line { stroke: #9A9093; stroke-width: 2; stroke-linecap: round; }
.cv-name { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.cv-big { stroke: var(--ink); stroke-width: 5; stroke-linecap: round; }
.cv-rule { stroke: var(--rule-soft); stroke-width: 1; }
.cv-btn { fill: var(--ink); }
.cv-btn--line { fill: none; stroke: var(--ink); stroke-width: 0.75; }
.cv-count text { font-family: var(--serif); font-size: 13px; fill: var(--ink); }
@media (min-width: 760px) {
	.compare { grid-template-columns: 1fr 1fr; }
}
.points__item--trail { position: relative; }
.trail-hint { display: none; color: var(--gold-text); font-style: italic; }
@media (hover: hover) and (pointer: fine) { .trail-hint { display: inline; } }
.trail-dot { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--gold); pointer-events: none; animation: trail-fade 0.9s var(--ease) forwards; }
@keyframes trail-fade { from { opacity: 0.9; transform: scale(1); } to { opacity: 0; transform: scale(0.2) translateY(6px); } }

/* Closing: how it works, then the invitation to chat */
.closing { text-align: left; }
.closing .steps { margin-bottom: clamp(56px, 7vw, 96px); }
.closing .steps li { border-top-color: var(--rule); }
.closing__cta { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--rule-soft); }

/* Planner screen recording, when supplied */
.planner__video { display: block; width: 100%; height: auto; }

/* Guest management */
.guests { display: grid; gap: clamp(40px, 5vw, 72px); align-items: center; }
.guests__lead { max-width: 40ch; font-size: 1.125rem; }
.features { margin: 28px 0; border-top: 1px solid var(--rule); display: grid; }
.features div { display: grid; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--rule-soft); }
.features dt { font-weight: 500; }
.features dd { margin: 0; color: var(--ink-2); }
.guests .fine { margin-bottom: 8px; max-width: 48ch; }
.planner { margin: 0; }
.planner__window { position: relative; border: 1px solid var(--ink); background: var(--ivory); }
.planner__bar { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--rule-soft); font-size: 0.8125rem; color: var(--ink-2); }
.planner__bar > span:first-child { font-family: var(--serif); font-style: italic; font-size: 1.0625rem; color: var(--ink); }
.planner__search { border: 1px solid var(--rule-soft); padding: 4px 12px; min-width: 150px; background: var(--ivory); }
.planner__viewport { overflow: hidden; }
.planner__plan { width: 100%; height: auto; padding: 14px; }
@media (max-width: 639px) {
	.planner__plan { width: 170%; max-width: none; margin-left: -35%; margin-top: -4%; margin-bottom: -18%; }
}
.pl-room { fill: none; stroke: var(--rule-soft); }
.pl-stage { fill: var(--paper); stroke: var(--ink); stroke-width: 0.75; }
.pl-table circle:first-child { fill: var(--paper); stroke: var(--ink); stroke-width: 0.75; }
.pl-table.is-active circle:first-child { fill: #F6EDEC; stroke: var(--rose); stroke-width: 2; }
.pl-seat { fill: var(--ivory); stroke: #8A8083; stroke-width: 0.75; }
.pl-seat.is-filled { fill: #6E6467; stroke: none; }
.pl-table.is-active .pl-seat.is-filled { fill: var(--rose); }
.pl-seat.is-new { fill: var(--rose); stroke: var(--cta); stroke-width: 1.5; }
.pl-txt { font-family: var(--sans); font-size: 11px; fill: var(--ink); }
.planner__card { position: absolute; right: 16px; bottom: 16px; background: var(--ivory); border: 1px solid var(--rose); padding: 12px 16px; font-size: 0.8125rem; line-height: 1.5; color: var(--ink-2); min-width: 200px; }
.planner__card-title { font-family: var(--serif); font-style: italic; font-size: 1.125rem; color: var(--ink); margin-bottom: 2px; }
.planner__card p { margin: 0; }
.planner__card .planner__card-title { margin-bottom: 2px; }
.planner.is-updated .planner__card { border-color: var(--cta); }
.planner figcaption { margin-top: 12px; font-size: 0.8125rem; color: var(--ink-2); }
@media (min-width: 960px) {
	.guests { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
}
@media (max-width: 559px) {
	.planner__card { position: static; border-width: 1px 0 0; border-color: var(--rule-soft); }
	.planner__search { display: none; }
}

/* What makes us different */
.points { display: grid; margin: 0; border-top: 1px solid var(--rule); }
.points__item { padding: 26px 0 28px; border-bottom: 1px solid var(--rule-soft); }
.points dt { font-family: var(--serif); font-style: italic; font-size: 1.5rem; line-height: 1.15; margin-bottom: 10px; }
.points dd { margin: 0; color: var(--ink-2); max-width: 40ch; }
@media (min-width: 900px) {
	.points { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 48px; }
}

/* What we make */
.make { display: grid; gap: 8px 64px; }
.make .heading { margin-bottom: 0.4em; }
.make__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.make__list li { display: grid; gap: 2px 32px; padding: 18px 0; border-bottom: 1px solid var(--rule-soft); }
.make__title { font-family: var(--serif); font-style: italic; font-size: 1.375rem; line-height: 1.2; }
.make__list li span:last-child { color: var(--ink-2); }
.make__note { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 20px; color: var(--ink-2); }
@media (min-width: 900px) {
	.make { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); }
	.make__list li { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: baseline; }
}

/* How it works */
.steps { list-style: none; margin: clamp(8px, 2vw, 24px) 0 0; padding: 0; display: grid; counter-reset: step; }
.steps li { align-content: start; counter-increment: step; padding: 22px 0 26px; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 48px 1fr; column-gap: 12px; }
.steps li::before { content: counter(step); font-family: var(--serif); font-style: italic; font-size: 1.75rem; line-height: 1; color: var(--gold-text); grid-row: span 2; }
.steps p { color: var(--ink-2); margin: 0; }
@media (min-width: 900px) {
	.steps { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 32px; }
	.steps li { grid-template-columns: 1fr; }
	.steps li::before { grid-row: auto; margin-bottom: 22px; }
}

/* FAQ */
.faq { display: grid; gap: 24px; }
.faq__head p { color: var(--ink-2); }
.faq__list { border-top: 1px solid var(--rule); }
.qa { border-bottom: 1px solid var(--rule-soft); }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 64px; padding: 16px 0; cursor: pointer; font-size: 1.0625rem; font-weight: 500; }
.qa summary::-webkit-details-marker { display: none; }
.qa[open] summary .icon { transform: rotate(45deg); }
.qa summary:hover span { text-decoration: underline; text-decoration-color: var(--rule-soft); }
.qa p { padding: 0 48px 22px 0; color: var(--ink-2); max-width: 62ch; }
@media (min-width: 960px) {
	.faq { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 64px; }
	.faq__head { position: sticky; top: 40px; align-self: start; }
}

/* Closing */
.closing { padding: clamp(80px, 10vw, 136px) 0; }
.closing__rule { width: 56px; height: 1px; background: var(--gold); margin-bottom: 32px; }
.display--closing { max-width: 16ch; }
.closing .lede { margin: 20px auto 32px; }

/* Phone-only WhatsApp bar, shown between the hero and the closing section */
.sticky-cta { display: none; }
@media (max-width: 767px) {
	.sticky-cta {
		position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 10;
		display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px;
		background: var(--cta); color: #fff; text-decoration: none; font-weight: 500; font-size: 0.9375rem;
		transform: translateY(calc(100% + 24px)); transition: transform 0.4s var(--ease);
	}
	.sticky-cta.is-visible { transform: none; }
	body.has-sticky .site-footer { padding-bottom: 96px; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 48px 0 40px; background: var(--ivory); }
.site-footer__inner { display: grid; gap: 28px; }
.site-footer__brand { display: flex; flex-direction: column; align-items: flex-start; }
.site-footer__brand .logo-img { height: 30px; }
.site-footer__brand p { text-wrap: pretty; margin-top: 16px; max-width: 40ch; font-size: 0.9375rem; color: var(--ink-2); }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer__links a, .site-footer__links .is-pending { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; text-decoration: none; font-size: 0.9375rem; }
.site-footer__links .is-pending { color: var(--ink-2); font-style: italic; }
.site-footer__links a:hover { text-decoration: underline; }
.site-footer__legal a { color: var(--ink-2); display: inline-flex; align-items: center; min-height: 44px; }
.site-footer__legal a[aria-current="page"] { color: var(--ink); text-decoration-thickness: 2px; }
.site-footer__policies { display: flex; flex-wrap: wrap; gap: 0 20px; }
.site-footer__legal { font-size: 0.8125rem; color: var(--ink-2); grid-column: 1 / -1; border-top: 1px solid var(--rule-soft); padding-top: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 24px; }
@media (min-width: 800px) {
	.site-footer__inner { grid-template-columns: 1.4fr 1fr; }
	.site-footer__links { justify-self: end; }
}

/* Link-in-bio page */
.links-page { min-height: 100svh; padding: 56px 20px 72px; }
.links-page__inner { max-width: 460px; margin-inline: auto; text-align: center; }
.links-page__brand { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; }
.links-page__brand .logo-img { height: 36px; }
.links-page__tagline { margin: 18px 0 32px; color: var(--ink-2); }
.links-page__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); text-align: left; }
.links-page__list a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 4px; border-bottom: 1px solid var(--rule-soft); text-decoration: none; }
.links-page__list a:hover strong { text-decoration: underline; }
.links-page__list strong { display: block; font-weight: 500; }
.links-page__list span span { display: block; font-size: 0.875rem; color: var(--ink-2); }
.links-page__list li:first-child a { background: var(--cta); color: #fff; padding: 18px 20px; margin: 16px 0; border: 0; }
.links-page__list li:first-child span span { color: rgba(255, 255, 255, 0.82); }

/* Simple pages (404, index) */
.page-simple { padding: var(--section) 0; min-height: 60vh; }
.page-simple .lede { margin: 20px 0 32px; }

/* ------------------------------------------------------------------
   Pages edited in WordPress (Privacy Notice, Website Terms of Use, Terms & Conditions)
   The type follows the supplied PDF documents; the header and footer stay the site's own.
   ------------------------------------------------------------------ */
/* Header and page share one sheet of paper, so the grain runs through with no seam or dividing line. */
.kd-paper { background-color: var(--field); background-image: var(--grain); background-size: 300px 300px; }
.kd-paper .site-header { background: none; }
.doc { color: var(--doc-ink); }
.doc-col { width: 100%; max-width: calc(700px + 40px); margin-inline: auto; padding: 64px 20px 88px; }
.doc-title { margin: 0; font-family: var(--sans); font-weight: 700; font-size: 2.125rem; line-height: 2.5rem; overflow-wrap: break-word; }
.doc-langs { display: inline-flex; flex-wrap: wrap; margin-bottom: 28px; border: 1px solid var(--doc-ink); }
.doc-langs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; color: var(--doc-ink); font-weight: 500; font-size: 0.875rem; text-decoration: none; }
.doc-langs a:hover { text-decoration: underline; }
.doc-langs a[aria-current] { background: var(--doc-ink); color: #fff; }
.doc-body [hidden] { display: none !important; }
@media (max-width: 599px) {
	.doc-col { padding-top: 32px; padding-bottom: 48px; }
	.doc-title { font-size: 1.75rem; line-height: 2.125rem; }
}

/* editor:start document-text */
.doc-body { font-family: var(--sans); font-size: 1.0625rem; line-height: 1.318; color: var(--doc-ink); overflow-wrap: break-word; }
.doc-body p { margin-top: 0; margin-bottom: 0.53rem; text-align: justify; }
.doc-body p.has-text-align-left { text-align: left; }
.doc-body p.has-text-align-center { text-align: center; }
.doc-body p.has-text-align-right { text-align: right; }
.doc-body h1, .doc-body h2, .doc-body h3, .doc-body h4 { font-family: var(--sans); font-style: normal; font-weight: 700; text-align: left; scroll-margin-top: 16px; }
.doc-body h1 { margin: 0; font-size: 2.125rem; line-height: 2.5rem; }
.doc-body h2 { margin: 1.25rem 0 0.6875rem; font-size: 1.25rem; line-height: 1.5625rem; }
.doc-body h3, .doc-body h4 { margin: 1rem 0 0.5rem; font-size: 1.0625rem; line-height: 1.4; }
.doc-body a { color: var(--doc-ink); text-decoration: underline; overflow-wrap: anywhere; }
.doc-body strong, .doc-body b, .doc-body th { font-weight: 700; }
.doc-body img { max-width: 100%; height: auto; }
.doc-body .kd-nowrap { white-space: nowrap; }

/* Bullets */
.doc-body ul { list-style: none; margin: 0 0 0.53rem; padding: 0 0 0 1.25rem; }
.doc-body ul > li { position: relative; margin: 0 0 0.375rem; padding-left: 1.375rem; text-align: left; }
.doc-body ul > li::before { content: "\00B7"; position: absolute; left: 0; top: 0; font-weight: 700; }
.doc-body li ul { margin: 0.375rem 0 0; padding-left: 0.1875rem; }
.doc-body li ul > li { margin-bottom: 0.3125rem; padding-left: 1.1875rem; }

/* Numbered clauses (1.1), lettered items (a) */
.doc-body ol.kd-clauses, .doc-body ol.kd-letters, .doc-body ol.kd-flat { list-style: none; margin: 0; padding: 0; }
.doc-body .kd-clauses > li, .doc-body .kd-letters > li { display: flex; }
.doc-body .kd-clauses > li { margin: 0 0 0.53rem; }
.doc-body .kd-letters > li { margin: 0.5rem 0 0; }
.doc-body .kd-clauses > li > .kd-num { flex: 0 0 3rem; }
.doc-body .kd-letters > li > .kd-num { flex: 0 0 2.1875rem; }
.doc-body .kd-text { flex: 1; min-width: 0; text-align: justify; }
.doc-body .kd-text > ul:last-child { margin-bottom: 0; }
.doc-body .kd-flat > li { margin: 0 0 0.53rem; text-align: justify; }
.doc-body p.is-style-kasih-continue { padding-left: 3rem; }

/* Contents list */
.doc-body .doc-contents__label { margin: 0.75rem 0 0.375rem; font-weight: 700; text-align: left; }
.doc-body ol.doc-contents { list-style: none; margin: 0 0 0.53rem; padding: 0 0 0 0.8125rem; }
.doc-body .doc-contents li { display: flex; line-height: 1.5625rem; }
.doc-body .doc-contents .kd-num { flex: 0 0 2.0625rem; }
.doc-body .doc-contents a { text-decoration: none; }
.doc-body .doc-contents a:hover { text-decoration: underline; }

/* Tables */
.doc-body .wp-block-table { margin: 0 0 0.625rem; overflow-x: auto; }
.doc-body table { width: 100%; border-collapse: collapse; font-size: 0.875rem; line-height: 1.38; }
.doc-body table th, .doc-body table td, .doc-body .wp-block-table th, .doc-body .wp-block-table td { padding: 9px 12px 9px 6px; border: 0; border-bottom: 1px solid var(--doc-rule); text-align: left; vertical-align: top; overflow-wrap: break-word; }
.doc-body table thead th, .doc-body .wp-block-table thead th { border-bottom: 1.5px solid var(--doc-ink); }
.doc-body table thead, .doc-body .wp-block-table thead { border: 0; }
.doc-body table th { text-wrap: balance; }
.doc-body table:has(th:first-child:nth-last-child(3)) { table-layout: fixed; }
.doc-body th:first-child:nth-last-child(3) { width: 34%; }
.doc-body th:nth-child(2):nth-last-child(2):not(:first-child) { width: 36%; }
.doc-body table:has(tr > :nth-child(4)) { min-width: 40rem; }

/* Preset paragraph styles */
.doc-body p.is-style-kasih-date { margin: 0.375rem 0 0; color: var(--doc-grey); font-size: 0.97rem; line-height: 1.42; text-align: left; }
.doc-body p.is-style-kasih-date + p { margin-top: 1.25rem; }
.doc-body p.is-style-kasih-end { margin-top: 1.5rem; color: var(--doc-grey); text-align: center; }
.doc-body p.is-style-kasih-company { margin-top: 2.75rem; padding-top: 9px; border-top: 1px solid var(--doc-rule); color: var(--doc-grey); font-size: 0.8125rem; line-height: 1.46; text-align: left; }
.doc-body p.is-style-kasih-draft { border: 1px solid var(--doc-ink); background: var(--paper); padding: 14px 18px; margin-bottom: 2rem; font-size: 0.9375rem; text-align: left; }
.doc-body .wp-block-group { margin: 0; }

/* Phones: same hierarchy, slightly smaller, left-aligned so word spacing stays even */
@media (max-width: 599px) {
	.doc-body { font-size: 1rem; line-height: 1.375; }
	.doc-body p, .doc-body .kd-text, .doc-body .kd-flat > li { text-align: left; }
	.doc-body p.is-style-kasih-end { text-align: center; }
	.doc-body h1 { font-size: 1.75rem; line-height: 2.125rem; }
	.doc-body h2 { font-size: 1.1875rem; line-height: 1.5rem; }
	.doc-body ul { padding-left: 0.875rem; }
	.doc-body ul > li { padding-left: 1rem; }
	.doc-body li ul { padding-left: 0.375rem; }
	.doc-body .kd-clauses > li > .kd-num { flex-basis: 2.5rem; }
	.doc-body .kd-letters > li > .kd-num { flex-basis: 1.875rem; }
	.doc-body p.is-style-kasih-continue { padding-left: 2.5rem; }
	.doc-body .doc-contents { padding-left: 0.5rem; }
	.doc-body table { font-size: 0.8125rem; }
	.doc-body table th, .doc-body table td, .doc-body .wp-block-table th, .doc-body .wp-block-table td { padding: 8px 6px 8px 4px; }
}
/* editor:end document-text */

@media (max-width: 599px) {
	.doc-body .wp-block-table:has(tr > :nth-child(4))::before { content: "Scroll sideways to see the whole table."; display: block; position: sticky; left: 0; margin-bottom: 8px; font-size: 0.8125rem; color: var(--doc-grey); }
	.doc-body [lang="ms"] .wp-block-table:has(tr > :nth-child(4))::before { content: "Tatal ke sisi untuk melihat seluruh jadual."; }
}

@media print {
	.site-header__cta, .site-nav, .skip, .doc-langs, .site-footer { display: none; }
	.kd-paper { background: none; }
	.site-header { background: none; }
	.doc-col { max-width: none; padding: 24px 0 0; }
	.doc-body table:has(tr > :nth-child(4)) { min-width: 0; }
	.doc-body .wp-block-table::before { display: none; }
	.doc-body h2, .doc-body h3 { break-after: avoid; }
}

/* Reduced motion: state changes stay, movement goes */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.device, .device::after, .device__screen, .sticky-cta { transition: none; }
	.sheet__panel { animation: none; }
	.inv { transition: opacity 0.2s linear, visibility 0s; }
}
