/* Native WordPress surfaces share the musik palette in both color modes. */
:root{--block-peach:#fff4ea}
html[data-theme=dark]{--block-peach:#443138}

/* Form controls, including widgets created in the block editor. */
:where(.widget,.post-body,.comment-form) :is(input,textarea,select){color:var(--ink);caret-color:var(--ink)}
:where(.widget,.post-body) :where(input:not([type=submit]):not([type=button]):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]),textarea,select){max-width:100%;min-width:0;background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:10px 12px}
:where(.widget,.post-body,.comment-form,.tool-dialog) :is(input,textarea)::placeholder{color:var(--muted);opacity:1}
:where(.widget,.post-body,.comment-form) :is(input[type=checkbox],input[type=radio]),.scroll-speed{accent-color:var(--accent)}
select:focus-visible{outline:3px solid #9e7cc2;outline-offset:5px}
.wp-block-search{max-width:100%;color:var(--text)}
.wp-block-search__label{display:block;margin-bottom:10px;font-size:13px;color:var(--ink)}
.wp-block-search__inside-wrapper{min-width:0;gap:10px;align-items:stretch}
.wp-block-search .wp-block-search__input{min-width:0;width:100%;border:1px solid var(--line);border-radius:10px;background:var(--paper);color:var(--ink);padding:10px 12px;font-size:14px}
.wp-block-search .wp-block-search__button{margin-left:0;flex-shrink:0;border-radius:10px;font-size:13px;line-height:1.48}
.wp-block-search__button-inside .wp-block-search__inside-wrapper{padding:8px;background:var(--paper);border:1px solid var(--line);border-radius:14px}
.wp-block-search__button-inside .wp-block-search__input{border:0;border-radius:6px;background:transparent;padding:8px 6px}
.wp-block-search__button-inside .wp-block-search__inside-wrapper:focus-within{outline:3px solid #9e7cc2;outline-offset:3px}
.wp-block-search__button-inside .wp-block-search__input:focus-visible{outline:none}
.wp-block-search .wp-block-search__button:not(.has-background),.wp-block-button:not(.is-style-outline)>.wp-block-button__link:not(.has-background){background:linear-gradient(182deg,color-mix(in srgb,var(--brand-primary) 80%,#000) 36%,var(--brand-primary));border:1px solid #ffffff3d;box-shadow:0 0 0 1px var(--brand-primary),inset 0 10px 12px #ffffff3d,0 4px 6px 1px #5b0cd529}
.wp-block-search .wp-block-search__button:not(.has-text-color),.wp-block-button:not(.is-style-outline)>.wp-block-button__link:not(.has-text-color){color:#fff}
.wp-block-search .wp-block-search__button:not(.has-background):hover,.wp-block-button:not(.is-style-outline)>.wp-block-button__link:not(.has-background):hover{box-shadow:0 0 0 1px var(--brand-primary),inset 0 -10px 24px #8056f147,0 4px 6px 1px #5b0cd529}
.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-background){background:transparent;border:1px solid var(--line);box-shadow:none}
.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-text-color){color:var(--ink)}

/* Tables and calendars otherwise retain the light gray WordPress defaults. */
.wp-block-calendar :where(table:not(.has-text-color)){color:var(--text)}
.wp-block-calendar :where(table:not(.has-text-color)) :is(td,th){border-color:var(--line)}
.wp-block-calendar :where(table:not(.has-background)) th{background:var(--soft);color:var(--ink)}
.wp-block-calendar caption,.wp-block-calendar .wp-calendar-nav{color:var(--ink);font-size:13px;line-height:1.6;padding-block:10px}
.wp-block-calendar table{font-size:13px}
.wp-block-calendar #today{background:var(--lavender);color:var(--ink)}
.wp-block-calendar a{text-decoration:underline;text-underline-offset:3px}
.wp-block-table.is-style-stripes{border-bottom-color:var(--line)}
.wp-block-table.is-style-stripes tbody tr:nth-child(odd){background-color:var(--soft)}
html[data-theme=dark] .wp-block-table.is-style-stripes tbody tr:nth-child(odd),html[data-theme=dark] .wp-block-table :is(.has-subtle-light-gray-background-color,.has-subtle-pale-green-background-color,.has-subtle-pale-blue-background-color,.has-subtle-pale-pink-background-color){background-color:var(--soft)}
:where(.widget,.post-body) :is(hr,.wp-block-separator){border-color:var(--line);color:var(--line)}
.wp-block-pullquote{border-color:var(--line);color:var(--ink)}

/* The built-in palette has separate dark surfaces and readable foregrounds.
   WordPress color utility classes use !important, so these targeted mappings do too. */
html[data-theme=dark] .has-white-background-color{background-color:var(--paper)!important}
html[data-theme=dark] .has-lavender-background-color{background-color:var(--lavender)!important}
html[data-theme=dark] .has-peach-background-color{background-color:var(--block-peach)!important}
html[data-theme=dark] .has-deep-purple-color{color:var(--ink)!important}
html[data-theme=dark] .has-white-border-color{border-color:var(--line)!important}
html[data-theme=dark] .has-lavender-border-color{border-color:var(--lavender)!important}
html[data-theme=dark] .has-peach-border-color{border-color:var(--block-peach)!important}

/* Native navigation must remain separate from the collapsing header menu. */
.post-navigation .nav-links,.comment-navigation .nav-links{color:var(--ink);font-weight:400;position:static}
.comment-navigation .nav-links{display:flex;justify-content:space-between;flex-wrap:wrap;gap:16px}
.comment-navigation .nav-next{margin-left:auto;text-align:right}
.post-navigation .nav-next{grid-column:2}
.post-navigation .nav-links>div{min-width:0;overflow-wrap:anywhere}
.comment-navigation a:hover,.post-navigation a:hover{color:var(--accent)}

/* Widget typography follows the existing sidebar cards. */
.widget{overflow-wrap:anywhere;font-size:14px;line-height:1.6}
.widget .wp-block-latest-posts__list{padding:0;list-style:none}
.widget .wp-block-latest-posts__list>li{margin:0;padding:12px 0}
.widget .wp-block-latest-posts__list>li+li{border-top:1px solid var(--line)}
.widget .wp-block-latest-posts__post-date,.widget .wp-block-latest-comments__comment-date{font-size:12px;color:var(--muted)}
.widget :where(a:not(.wp-element-button):not(.wp-block-button__link)):hover{color:var(--accent)}
.widget .wp-block-latest-comments{margin:0;padding-left:0}
@media(max-width:540px){.post-navigation .nav-next{grid-column:auto}.wp-block-search__inside-wrapper{gap:8px}}