/* ==========================================================
   Patch CSS: responsive media + widget look + menus
   ========================================================== */

/* 1) Responsive media inside post/page content */
.post-content img,
.post-content video,
.post-content figure,
.post-content .wp-block-image img,
.post-content .wp-block-video video {
  max-width: 100%;
  height: auto;
}

.post-content iframe,
.post-content embed,
.post-content object {
  max-width: 100%;
}

.post-content {
  overflow: hidden; /* prevents small overflows */
}

/* Gutenberg alignment on mobile */
@media (max-width: 768px) {
  .post-content .alignleft,
  .post-content .alignright {
    float: none;
    margin: 0 0 10px 0;
    display: block;
  }
}

/* 2) Widget styling like Win98 list */
.kfw98-widget-window .win-inset-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.kfw98-widget-window .win-inset-panel li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border-bottom: 1px dotted #808080;
}

.kfw98-widget-window .win-inset-panel li:last-child {
  border-bottom: none;
}

.kfw98-widget-window .win-inset-panel li:hover {
  background: #000080;
}

.kfw98-widget-window .win-inset-panel li:hover,
.kfw98-widget-window .win-inset-panel li:hover a {
  color: #fff;
}

.kfw98-widget-window .win-inset-panel li a {
  color: #000;
  text-decoration: none;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Recent posts: icon */
.widget_recent_entries li::before { content: "F4C4"; } /* 📄 */
/* Categories: icon */
.widget_categories li::before { content: "F4C1"; } /* 📁 */
/* Tag cloud often outputs links, not list */
.widget_tag_cloud a {
  display: inline-block;
  margin: 2px 3px;
  padding: 1px 7px;
  background: #C0C0C0;
  border-top: 1px solid #fff;
  border-left: 1px solid #fff;
  border-right: 1px solid #404040;
  border-bottom: 1px solid #404040;
  font-size: 11px !important;
  color: #000;
  text-decoration: none;
}
.widget_tag_cloud a:hover { background:#000080; color:#fff; }

/* 3) Menubar should allow links (if menu assigned) */
.win-menubar .menu-item {
  display: inline-block;
  color: inherit;
  text-decoration: none;
}

/* 4) Make search form fit inset panel */
.search-form { display:flex; gap:6px; flex-wrap:wrap; align-items:center; }
.search-form .search-field { flex: 1; min-width: 140px; }
