
#kinder-home-integrated{color-scheme:light;--paper:#faf7f0;--ink:#1e2a45;--secondary:#626d82;--line:#e7dfd0;--card:#fffefa;--focus:#a76a25;--event-padding:8px;--ui-scale:1;max-width:430px;margin-inline:auto;font-family:-apple-system,BlinkMacSystemFont,"PingFang TC","Noto Sans TC",sans-serif;color:var(--ink);font-size:calc(14px * var(--ui-scale));line-height:1.5}
#kinder-home-integrated *{box-sizing:border-box}
#kinder-home-integrated [hidden]{display:none!important}
#kinder-home-integrated .kh-page{background:var(--paper);padding:16px;border-radius:14px}
#kinder-home-integrated h1,#kinder-home-integrated h2,#kinder-home-integrated h3,#kinder-home-integrated p{margin:0}
#kinder-home-integrated .kh-brand{display:flex;align-items:center;gap:10px;padding-bottom:14px;border-bottom:1px solid var(--line)}
#kinder-home-integrated .kh-monogram{display:grid;place-items:center;width:34px;height:34px;flex:none;border-radius:10px;background:var(--ink);color:#e8c58f;font-size:calc(20px * var(--ui-scale));font-weight:700}
#kinder-home-integrated h1{font-size:calc(20px * var(--ui-scale));font-weight:700;letter-spacing:-.5px;line-height:1.3}
#kinder-home-integrated h2{font-size:calc(20px * var(--ui-scale));font-weight:650;letter-spacing:-.4px;line-height:1.3;text-wrap:balance}
#kinder-home-integrated h3{font-size:calc(13px * var(--ui-scale));font-weight:600;letter-spacing:.02em;line-height:1.5}
#kinder-home-integrated .kh-section-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin:24px 0 16px}
#kinder-home-integrated .kh-caption{font-size:calc(12px * var(--ui-scale));color:var(--secondary);font-variant-numeric:tabular-nums;white-space:nowrap}
#kinder-home-integrated .kh-group+.kh-group{margin-top:20px}
#kinder-home-integrated .kh-group>h3{padding-bottom:8px;border-bottom:1px solid var(--line)}
#kinder-home-integrated .kh-event{border-bottom:1px solid var(--line)}
#kinder-home-integrated .kh-event>summary{display:grid;grid-template-columns:3.86em minmax(0,1fr) 1.29em;grid-template-rows:auto auto;column-gap:12px;row-gap:3px;align-items:start;min-height:58px;padding:var(--event-padding) 0;list-style:none;touch-action:manipulation;cursor:pointer}
#kinder-home-integrated summary::-webkit-details-marker{display:none}
#kinder-home-integrated .kh-weekday{grid-column:1;grid-row:1;color:var(--ink);font-size:calc(14px * var(--ui-scale));font-weight:600;line-height:1.45;letter-spacing:.04em;font-variant-numeric:tabular-nums}
#kinder-home-integrated .kh-title{grid-column:2;grid-row:1;color:var(--ink);font-size:calc(14px * var(--ui-scale));font-weight:550;line-height:1.45;overflow-wrap:anywhere;text-wrap:pretty}
#kinder-home-integrated .kh-date{grid-column:1;grid-row:2;font-size:calc(12px * var(--ui-scale));line-height:1.5;color:var(--secondary);white-space:nowrap;font-variant-numeric:tabular-nums}
#kinder-home-integrated .kh-meta{grid-column:2;grid-row:2;font-size:calc(12px * var(--ui-scale));line-height:1.5;color:var(--secondary);overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
#kinder-home-integrated .kh-chevron{display:flex;align-items:center;justify-content:center;width:18px;height:22px;flex:none;color:var(--secondary);transition:transform .16s ease;transform-origin:center}
#kinder-home-integrated .kh-event>summary>.kh-chevron{grid-column:3;grid-row:1/3;align-self:center}
#kinder-home-integrated details[open]>summary>.kh-chevron{transform:rotate(180deg)}
#kinder-home-integrated .kh-event-body{padding:2px 0 14px 66px;font-size:calc(13px * var(--ui-scale));line-height:1.6;overflow-wrap:anywhere}
#kinder-home-integrated .kh-event-body p+p{margin-top:8px}
#kinder-home-integrated .kh-official-title{font-weight:550}
#kinder-home-integrated .kh-links{display:flex;flex-wrap:wrap;gap:4px 16px;margin-top:8px}
#kinder-home-integrated .kh-links a{display:inline-flex;align-items:center;min-height:44px;color:var(--ink);text-decoration:underline;text-underline-offset:3px;touch-action:manipulation}
#kinder-home-integrated .kh-later>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;list-style:none;font-size:calc(12px * var(--ui-scale));color:var(--secondary);touch-action:manipulation;cursor:pointer}
#kinder-home-integrated .kh-empty-calendar{font-size:calc(12px * var(--ui-scale));color:var(--secondary);padding:12px 0}
#kinder-home-integrated .kh-school-section{margin-top:30px;scroll-margin-top:16px}
#kinder-home-integrated .kh-school-section .kh-section-head{margin-top:0;margin-bottom:8px}
#kinder-home-integrated .kh-facets{display:flex;flex-wrap:wrap;gap:0 8px;border-bottom:1px solid var(--line);margin-bottom:16px}
#kinder-home-integrated .kh-facet{display:block;position:relative;min-width:0;flex:1 1 6em;color:var(--secondary)}
#kinder-home-integrated .kh-facet select{font:inherit;font-size:calc(14px * var(--ui-scale));font-weight:400;color:var(--secondary);display:block;width:100%;min-width:0;min-height:44px;padding:10px 18px 10px 0;background:transparent;border:0;border-radius:0;appearance:none;touch-action:manipulation;cursor:pointer}
#kinder-home-integrated .kh-facet[data-active=true] select{color:var(--ink);font-weight:600;box-shadow:inset 0 -1px #b6782f}
#kinder-home-integrated .kh-facet>.kh-facet-arrow{position:absolute;right:0;top:14px;display:flex;width:14px;height:16px;color:var(--secondary);pointer-events:none}
#kinder-home-integrated .kh-school-grid{display:grid;grid-template-columns:1fr;gap:12px}
#kinder-home-integrated .kh-school{display:grid;grid-template-columns:minmax(0,1fr) 92px;gap:8px 12px;min-width:0;padding:16px;background:var(--card);border:1px solid var(--line);border-radius:14px;color:var(--ink);text-decoration:none;touch-action:manipulation}
#kinder-home-integrated .kh-school-top{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:12px}
#kinder-home-integrated .kh-school-tag{display:inline-flex;align-items:center;min-height:28px;max-width:100%;padding:3px 8px;border-radius:8px;font-size:calc(13px * var(--ui-scale));line-height:1.5;font-weight:650;overflow-wrap:anywhere}
#kinder-home-integrated .kh-school-arrow{font-size:calc(17px * var(--ui-scale));color:var(--secondary)}
#kinder-home-integrated .kh-school-name{grid-column:1;grid-row:2;align-self:end;font-size:calc(17px * var(--ui-scale));line-height:1.4;font-weight:650;overflow-wrap:anywhere;text-wrap:pretty}
#kinder-home-integrated .kh-school-area{grid-column:1;grid-row:3;font-size:calc(13px * var(--ui-scale));line-height:1.45;color:var(--secondary);overflow-wrap:anywhere}
#kinder-home-integrated .kh-school-logo{grid-column:2;grid-row:2/4;display:grid;place-items:center;width:92px;height:48px;border-radius:8px;padding:4px}
#kinder-home-integrated .kh-school-logo img{display:block;width:84px;height:40px;object-fit:contain}
#kinder-home-integrated .kh-programmes{grid-column:1/-1;font-size:calc(13px * var(--ui-scale));line-height:1.5;color:var(--secondary);overflow-wrap:anywhere}
#kinder-home-integrated .kh-empty{font-size:calc(13px * var(--ui-scale));line-height:1.6;padding:12px 0}
#kinder-home-integrated .kh-reset{font:inherit;min-height:44px;padding:6px 0;border:0;background:transparent;color:var(--ink);text-decoration:underline;text-underline-offset:3px;touch-action:manipulation;cursor:pointer}
#kinder-home-integrated footer{margin-top:28px;border-top:1px solid var(--line);padding-top:16px;font-size:calc(13px * var(--ui-scale));font-weight:600}
#kinder-home-integrated .kh-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
#kinder-home-integrated .kh-skip:focus{position:static;display:block;width:auto;height:auto;margin:0;padding:8px;clip-path:none;color:var(--ink)}
#kinder-home-integrated :is(summary,a,button,select):focus-visible{outline:2px solid var(--focus);outline-offset:3px;border-radius:4px}
@media(hover:hover){#kinder-home-integrated .kh-event>summary:hover,#kinder-home-integrated .kh-later>summary:hover{color:var(--ink);background:#f4f0e7}#kinder-home-integrated .kh-school:hover{border-color:#b9b2a6}#kinder-home-integrated .kh-facet select:hover{color:var(--ink)}}
@media(prefers-reduced-motion:reduce){#kinder-home-integrated .kh-chevron{transition:none}}

html{background:#faf7f0}body{margin:0} .kh-chevron::after,.kh-facet-arrow::after{content:"";width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg)}

/* Approved homepage panel navigation; content styles remain above. */
#kinder-home-integrated .kh-switch{display:flex;position:relative;margin-top:12px;border-bottom:1px solid var(--line)}
#kinder-home-integrated .kh-switch::after{content:"";position:absolute;bottom:-1px;left:0;width:50%;height:2px;background:var(--focus);transform:translateX(calc(var(--kh-panel,0) * 100%));transition:transform .24s ease;pointer-events:none}
#kinder-home-integrated .kh-switch button{flex:1;min-width:0;min-height:48px;appearance:none;border:0;padding:10px 4px;background:transparent;font:inherit;font-weight:550;color:var(--secondary);touch-action:manipulation;cursor:pointer}
#kinder-home-integrated .kh-switch button[aria-selected=true]{color:var(--ink)}
#kinder-home-integrated.kh-switch-ready .kh-panels{display:flex;align-items:flex-start;margin-inline:-4px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;overflow-anchor:none}
#kinder-home-integrated.kh-switch-ready .kh-panels::-webkit-scrollbar{display:none}
#kinder-home-integrated.kh-switch-ready .kh-panel{flex:0 0 100%;min-width:0;scroll-snap-align:start;padding:0 4px 4px}
#kinder-home-integrated.kh-switch-ready .kh-panel>.kh-section-head{justify-content:flex-end;min-height:20px;margin:16px 0}
#kinder-home-integrated.kh-switch-ready .kh-school-section{margin-top:0}
@media(prefers-reduced-motion:reduce){#kinder-home-integrated .kh-switch::after{transition:none}}
