/* ---- Policy pages: no sidebar, full-width content ---- */
body.fmke-policy-page #secondary,
body.fmke-policy-page .widget-area { display: none !important; }
body.fmke-policy-page #primary,
body.fmke-policy-page .content-area {
  width: 100% !important; float: none !important; margin-right: 0 !important; max-width: 100% !important;
}

/* ---- Sidebar / footer widgets ---- */
.widget-area .widget { margin: 0 0 28px; }
.widget-area .widget-title,
.widget-area .wp-block-heading,
.widget-area h2.wp-block-heading,
.widget-area .widgettitle {
  font-family: 'Fraunces', Georgia, serif; color: #1F3D2C; font-size: 18px;
  margin: 0 0 12px; padding-left: 12px; border-left: 4px solid #FF6A00;
}
.widget-area ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.widget-area ul li { margin: 0 !important; padding: 9px 0 !important; border-bottom: 1px solid #F0E4D8; color: #4a5a50; }
.widget-area ul li:last-child { border-bottom: 0; }
.widget-area ul li a { color: #1F3D2C; text-decoration: none; font-weight: 600; transition: color .15s; }
.widget-area ul li a:hover { color: #FF6A00; }
.widget-area .wp-block-latest-comments__comment,
.widget-area .wp-block-latest-posts__post-date { color: #767676; font-size: 13px; }

/* ---- Search box in widgets (block search + classic search widget) ---- */
.widget-area form[role="search"],
.widget-area .wp-block-search,
.widget-area .search-form {
  position: relative; display: flex !important; align-items: center;
  width: 100%; max-width: 420px; box-sizing: border-box;
  margin: 0 0 6px; padding: 4px 4px 4px 16px !important;
  background: #fff; border: 1.5px solid #F0E4D8 !important; border-radius: 999px !important;
  box-shadow: none;
  transition: border-color .15s, box-shadow .15s;
}
.widget-area form[role="search"]:focus-within,
.widget-area .wp-block-search:focus-within,
.widget-area .search-form:focus-within {
  border-color: #FF6A00 !important; box-shadow: 0 0 0 3px rgba(255,106,0,.14);
}
/* drop the header-style magnifier drawn on the form itself; the button carries its own icon here */
.widget-area form[role="search"]::before, .widget-area form[role="search"]::after,
.widget-area .wp-block-search::before, .widget-area .wp-block-search::after,
.widget-area .search-form::before, .widget-area .search-form::after { content: none !important; }

/* hide the "Search" label (kept for screen readers) */
.widget-area .wp-block-search__label,
.widget-area .search-form .screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.widget-area .search-form label { display: flex; flex: 1; min-width: 0; margin: 0; }
.widget-area .wp-block-search__inside-wrapper {
  display: flex !important; flex: 1; min-width: 0; align-items: center; gap: 6px;
  border: 0 !important; padding: 0 !important; background: none !important;
}
.widget-area form[role="search"] input[type="search"],
.widget-area .wp-block-search__input,
.widget-area .search-field {
  flex: 1; min-width: 0; width: 100%; border: 0 !important; outline: 0 !important;
  background: transparent !important; box-shadow: none !important; color: #1F3D2C;
  font-size: 14px; padding: 9px 4px !important; margin: 0 !important; height: auto !important;
  -webkit-appearance: none; appearance: none;
}
.widget-area input[type="search"]::placeholder { color: #8c8c8c; }
.widget-area input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }

/* submit button: orange circle with a white magnifier, same on desktop and mobile */
.widget-area form[role="search"] button[type="submit"],
.widget-area .wp-block-search__button,
.widget-area .search-form input[type="submit"],
.widget-area .search-submit {
  flex: 0 0 auto; width: 36px !important; height: 36px !important; padding: 0 !important; margin: 0 !important;
  border: 0 !important; border-radius: 50% !important; cursor: pointer; position: relative;
  background: #FF6A00 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M20 20l-4.3-4.3'/%3E%3C/svg%3E") center / 18px no-repeat !important;
  color: transparent !important; font-size: 0 !important; text-indent: -9999px; overflow: hidden;
  box-shadow: 0 4px 10px rgba(255,106,0,.25);
}
.widget-area form[role="search"] button[type="submit"]::before, .widget-area form[role="search"] button[type="submit"]::after,
.widget-area .wp-block-search__button::before, .widget-area .wp-block-search__button::after { content: none !important; }
.widget-area form[role="search"] button[type="submit"]:hover,
.widget-area .wp-block-search__button:hover,
.widget-area .search-submit:hover { background-color: #CC5500 !important; }
