/* Cover text in themes, widgets and forms, including newly added content.
   Keep icon glyphs and the WordPress admin toolbar in their own fonts.
   Do not override pseudo-elements: themes use them for icon fonts. */
html body,
html body :not(:where(
  #wpadminbar, #wpadminbar *,
  .fa, .fas, .far, .fab, .fal, .fad,
  .fa-solid, .fa-regular, .fa-brands,
  .dashicons, .ab-icon, .noticon, .genericon, .material-icons,
  [class^="icon-"], [class*=" icon-"]
)) {
  font-family: "LINE Seed JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif !important;
}

/* Clear, compact disclosure without changing article layout. */
.risate-ad-disclosure{font-size:13px;line-height:1.6;color:#525252;margin:0 0 1rem}
.risate-policy th,.risate-policy td{overflow-wrap:anywhere;vertical-align:top}
.risate-policy th{min-width:5em;text-align:left}
.risate-policy figure{margin-left:0;margin-right:0}
.risate-policy table{width:100%;border-collapse:collapse;margin:1em 0}
.risate-policy th,.risate-policy td{padding:.8em;text-align:left;border:1px solid #d1d5db;line-height:1.8}
.risate-policy th{background:#f4f6f7;color:#263238}
body.page-id-3 .a2a_floating_style,body.page-id-2970 .a2a_floating_style,body.page-id-138 .a2a_floating_style{display:none}

/* Accessibility and existing content helpers only. Theme / skin own the layout. */
body.risate-refreshed{--risate-accent:#23518c;--risate-soft:#edf4fc;--risate-ink:#202c39;--risate-muted:#526171;--risate-line:#dce3e9}
body.risate-band{--risate-accent:#7a4d00;--risate-soft:#fff7df}
body.risate-refreshed a:focus-visible,body.risate-refreshed button:focus-visible,body.risate-refreshed input:focus-visible{outline:3px solid #2378ce;outline-offset:4px}
body.risate-refreshed .risate-archive-note{border-left:3px solid #b67d20;background:#fff8e9;padding:18px 22px;margin:0 0 24px;font-size:15px;line-height:1.8}
body.risate-refreshed .risate-archive-note p{margin:.4em 0 0}
body.risate-refreshed .risate-operator{font-size:15px;line-height:1.9}
body.risate-refreshed .risate-operator p{margin:0 0 12px}
body.risate-refreshed .risate-operator a{display:inline-block;text-decoration:underline}
body.risate-refreshed .risate-search{margin:18px 0}
body.risate-refreshed .risate-search>div{display:flex;gap:8px}
body.risate-refreshed .risate-search input{min-width:0;flex:1;width:100%;padding:12px;border:1px solid #9ba9b6;border-radius:6px;background:#fff;color:#202c39;font-size:16px;height:auto;line-height:1.5}
body.risate-refreshed .risate-search button{border:0;border-radius:6px;padding:12px 16px;flex:none;background:var(--risate-accent);color:#fff;font-size:16px;line-height:1.5;cursor:pointer}
body.risate-refreshed .risate-topic-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
body.risate-refreshed a.risate-topic{position:relative;display:flex;flex-direction:column;gap:10px;padding:24px 22px 46px;border:1px solid var(--risate-line);border-top:3px solid var(--risate-accent);border-radius:8px;background:#fff;text-decoration:none;color:var(--risate-ink);min-width:0;transition:background-color .15s}
body.risate-refreshed a.risate-topic:hover{background:var(--risate-soft)}
body.risate-refreshed .risate-topic strong{font-size:18px;line-height:1.6}
body.risate-refreshed .risate-topic>span{font-size:14px;color:var(--risate-muted);line-height:1.8}
body.risate-refreshed .risate-topic .risate-topic-arrow{position:absolute;bottom:15px;right:22px;color:var(--risate-accent);font-size:22px}
@media(prefers-reduced-motion:reduce){body.risate-refreshed .risate-topic{transition:none}}
@media(max-width:640px){
 body.risate-refreshed .risate-topic-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 body.risate-refreshed a.risate-topic{padding:18px 16px 40px}
 body.risate-refreshed .entry-content table{display:block;max-width:100%;overflow-x:auto}
}
@media(prefers-reduced-motion:reduce){body.risate-refreshed .risate-topic{transition:none}}
/* Form controls must fit their column, including CF7's legacy size attributes. */
body.risate-refreshed .wpcf7-form label,body.risate-refreshed .wpcf7-form-control-wrap{display:block;max-width:100%}
body.risate-refreshed .wpcf7-form input:not([type=checkbox]):not([type=radio]):not([type=hidden]),body.risate-refreshed .wpcf7-form textarea,body.risate-refreshed .wpcf7-form select{box-sizing:border-box;max-width:100%;width:100%;font-size:16px;line-height:1.6;padding:12px;border-radius:5px}
body.risate-refreshed .wpcf7-form textarea{resize:vertical}
body.risate-refreshed .wpcf7-form input[type=submit]{width:auto;min-width:140px;min-height:48px;padding:12px 28px;background:var(--risate-accent);color:#fff;border:0;cursor:pointer}
body.home .a2a_floating_style{display:none}

/* Logged-in mobile administrators need access to the skin's menu below WP's toolbar. */
@media(max-width:782px){
 body.skin-grayish.admin-bar #wpadminbar{position:fixed}
 body.skin-grayish.admin-bar .mobile-header-menu-buttons{top:46px}
 body.skin-grayish.admin-bar #navi-menu-content{top:46px;height:calc(100dvh - 46px)}
}

/* Match the mobile search container to its 44px touch target. */
@media(max-width:767px){body.risate-band .af-search-wrap,body.risate-band .search-overlay{width:44px;min-width:44px}}
