@import "components/_post-thumbnail-56k2WGf.css";
@import "components/_alert-banner-TMpVyyL.css";
@import "components/_sidebar-panel-xa9eJ0n.css";
@import "components/_flash-messages-l67EoP6.css";
@import "components/_dashboard-tabs-IlXTOqQ.css";
@import "components/_typography-nFVzJeN.css";
@import "components/_category-buttons-l8oDW4B.css";
@import "components/_layout-zJRyyTU.css";
@import "components/_post-item-G0t8kRJ.css";

@import "components/_comments-threads-zzxridk.css";
@import "components/_featured-banner-J3cAgOl.css";
@import "components/_buttons-SbdQn_q.css";
/* assets/styles/app.css */

/* Flexbox row helper for Bootstrap 3 grid alignment */
.row-flex {
    display: flex;
    flex-wrap: wrap;
}
.row-flex::before,
.row-flex::after {
    display: none !important;
}


/*--------------------------------------------------------------------
common
--------------------------------------------------------------------*/

html,
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, sans-serif;
    background: #fff;
}





h1,
h2,
h3,
h4,
h5,
h6,
address,
div,
blockquote,
p,
pre,
ul,
ol,
li,
dl,
dt,
dd,
hr {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, sans-serif;
}

table,
caption,
th,
td {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, sans-serif;
}

span,
em,
strong,
dfn,
code,
samp,
kbd,
var,
cite,
abbr,
acronym,
sub,
sup,
q,
br,
ins,
del,
a,
img,
object,
iframe {
    font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', Meiryo, 'メイリオ', Osaka, 'MS PGothic', arial, helvetica, sans-serif;
}

blockquote p {
    font-size: 12px;
}



.panel-primary .panel-body {
    padding: 0 !important;
}

/* Override padding for dropdowns in main content area only */
.main .row>[class*="col-"]>.panel-primary .panel-body {
    padding: 10px 0 !important;
}

.main .row>[class*="col-"]>.panel-primary .panel-heading {
    padding: 5px 10px !important;
}

.main .row>[class*="col-"]>.panel-primary .form-control {
    width: 100% !important;
    margin: 0 !important;
}

/* Full-width select dropdowns (main content area only) */
#main .panel-primary .form-control {
    width: 100% !important;
}

/* Bold post title links */
a[style*="background-color: #d9edf7"] {
    font-weight: bold !important;
}

.panel-heading a[style*="background-color"] {
    font-weight: bold !important;
}

/* main */

.sidebar h2 {
    font-size: 1.5em;
    margin: 0px 0px 15px 0;
    padding: 3px 0 3px 32px;
    border-bottom: solid 2px #d70003;
    position: relative;
}

.sidebar h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #d70003 0%, #f95e5a 100%);
    border-radius: 2px;
}




.main h4 {
    font-size: 14px;
    border-left: solid 4px #057ff0;
    padding: 0 0 0 10px;
    margin: 3px 2px !important;
    line-height: 1em;
}




.panel-heading {
    padding: 5px 10px;
}

.checkbox {
    float: left;
    margin: 0 5px;
}

h2.post-title {
    font-size: 1.5em;
    margin: 0 0 15px 0;
    padding: 3px 0 3px 12px;
    border-bottom: solid 2px #d70003;
    border-left: solid 4px #057ff0;
    position: relative;
    border-top: none;
}

h2.post-title::before {
    display: none;
}

.delete-checkbox {
    margin: 15px 0;
    display: inline-block;
}

.featured-post {
    background-color: #f5faff;
    border-color: #eaf4fb;
    border: 1px solid #eee;
    min-height: 102px;
    margin-bottom: 20px;
}

.featured-post:last-child {
    margin-bottom: 6px;
}

.featured-post .panel-heading {
    background-color: #b3d8f6;
    color: #222;
    padding: 5px 10px;
}

.featured-post h3 {
    color: #222;
    font-weight: bold;
    line-height: 1.6;
    margin: 0;
    padding: 2px 0 2px 0;
    background-image: none;
}

.featured-post .img-thumbnail {
    padding: 0;
    margin-left: 5px;
    width: 98px;
    height: 98px;
}

.featured-post .content {
    margin: 10px;
}

.featured-post .category {
    color: #ccc;
    font-size: 15px;
    margin-bottom: 10px;
}

.featured-post .title {
    font-size: 20px;
}






@media (max-width: 480px) {

    #news,
    #globalnav,
    #socialbutton {
        display: none;
    }

    #guide,
    #bookmark,
    #diary {
        display: none;
    }

    /* #logo mobile overrides removed */

    #top {
        float: none !important;
    }


    /* #submessage mobile overrides removed */

    /* Add padding to main content on mobile to maintain horizontal spacing */
    .main {
        padding: 0 15px;
    }

    h2.post-title {
        font-size: 1em;
    }

    .featured-post .category {
        color: #ccc;
        font-size: 12px;
        margin-bottom: 5px;
    }

    .featured-post .title {
        font-size: 15px;
    }
}

.features-table {
    width: 100%;
    margin: 0 auto;
    border-collapse: separate;
    border-spacing: 0;
    text-shadow: 0 1px 0 #fff;
    color: #2a2a2a;
    background-image: linear-gradient(top, #fff, #eaeaea, #fff);
}

.features-table td {
    height: 50px;
    line-height: 50px;
    padding: 0 20px;
    border-bottom: 1px solid #cdcdcd;
    box-shadow: 0 1px 0 white;
    white-space: nowrap;
    text-align: center;
}

.features-table tbody td {
    text-align: center;
    font: bold 1em Meiryo;
    width: 80px;
}

.features-table tbody td:first-child {
    width: auto;
}

.features-table td:nth-child(2),
.features-table td:nth-child(3) {
    background: #efefef;
    background: rgba(120, 120, 120, 0.15);
    border-right: 1px solid white;
}

.features-table td:nth-child(1) {
    background: #e7f3d4;
    background: rgba(184, 243, 85, 0.3);
}

/*Header*/
.features-table thead td {
    font: bold 1.1em Georgia;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    border-top: 1px solid #eaeaea;
    background: rgba(60, 60, 60, 0.15);
}

.features-table thead td:first-child {
    background: rgba(184, 243, 85, 0.6);
}

/*Footer*/
.features-table tfoot td {
    font: bold 1.1em Georgia;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    border-bottom: 1px solid #dadada;
    background: rgba(50, 100, 100, 0.15);
}

.features-table tfoot td:first-child {
    background: rgba(184, 243, 85, 0.6);
}

/* Hide the 640px banner image by default */
.banner-728 {
    display: none;
}

/* Show the 640px banner image when the browser width is 974px or greater */
@media (min-width: 974px) {
    .banner-728 {
        display: block;
    }

    /* Hide the 320px banner image when the 640px banner image is shown */
    .banner-468 {
        display: none;
    }
}

/* Show the 320px banner image when the browser width is less than 974px */
@media (max-width: 974px) {
    .banner-468 {
        display: block;
    }

    /* Hide the 640px banner image when the 320px banner image is shown */
    .banner-728 {
        display: none;
    }
}

/*--------------------------------------------------------------------
Inline Styles Refactoring - Phase 1
--------------------------------------------------------------------*/

/* Small text with top margin (36 occurrences) */
.small-text-margin-top {
    font-size: 11.5px;
    margin-top: 10px;
}

/* Thumbnail/image sizing - 98x98px (8 occurrences) */
.thumbnail-size {
    width: 98px;
    height: 98px;
}

/* Small text with no margin (8 occurrences) */


/* Small text with bottom margin (8 occurrences) */
.small-text-margin-bottom {
    font-size: 11px;
    margin-bottom: 10px;
}

/* White background with small text (8 occurrences) */




/* Full width white background box with margin (6 occurrences) */


/* Sidebar panel container */
.sidebar-panel {
    background: #fff;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Sidebar panel title */
.sidebar-title {
    margin: 0;
    padding: 15px;
    font-size: 16px;
    border-bottom: 1px solid #ddd;
    background-color: #f5f5f5;
}

/* Sidebar panel description */
.sidebar-description {
    margin: 0;
    padding: 10px 15px;
    font-size: 12px;
    color: #666;
}

/* Sidebar list */
.sidebar-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Sidebar list items */
.sidebar-list li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #eee;
}

.sidebar-list li:last-child {
    border-bottom: none;
}

.sidebar-list a {
    display: block;
    padding: 10px 15px;
    color: #057ff0;
    text-decoration: none;
    font-size: 12px;
}

.sidebar-list a:hover {
    background-color: #f9f9f9;
    text-decoration: underline;
}

/* List with no padding and left margin (6 occurrences) */
.list-no-padding-margin {
    padding-left: 5px !important;
    list-style: none !important;
}

/* List items with full width - specificity override */
.list-no-padding-margin li {
    width: 100% !important;
}

/* Full width with vertical margin (4 occurrences) */
.full-width-margin {
    width: 100%;
    margin: 5px 0;
}

/* Right-aligned small text (4 occurrences) */
.right-align-small-text {
    text-align: right;
    font-size: 0.8em;
}

/* Top margin helper (4 occurrences) */


/* Small text variant with semicolon (3 occurrences) */
.small-text-variant {
    font-size: 12px;
}

/* Light gray background (2 occurrences) */


/* Additional common styles from Phase 1b - Reduced after cleanup */

/* Small text only (15 occurrences) */


/* List style none (8 occurrences) */
.list-style-none {
    list-style: none;
}

/* White bg with small text (8 occurrences) */


/* Vertical margin 20px (6 occurrences) */


/* Width 50% (5 occurrences) */
.width-50 {
    width: 50%;
}

/* Width 100px (5 occurrences) */
.width-100 {
    width: 100px;
}

/* Horizontal margin 5px (5 occurrences) */
.margin-5 {
    margin: 5px;
}

/* No margin (5 occurrences) */
.margin-0 {
    margin: 0;
}

/* Small text with left margin (5 occurrences) */
.small-text-margin-left {
    font-size: 12px;
    margin: 10px 15px;
}

/* White background (5 occurrences) */


/* White background variant (5 occurrences) */


/* Width 90% (4 occurrences) */
.width-90 {
    width: 90%;
}

/* Top margin 20px (4 occurrences) */


/* Overflow hidden with ellipsis (3 occurrences) */
.text-ellipsis {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Max height scroll (3 occurrences) */
.max-height-scroll {
    max-height: 100px;
    overflow: scroll;
}

/* Vertical margin 5px (3 occurrences) */
.margin-5-vertical {
    margin: 5px 0;
}

/* Center margin (3 occurrences) */
.margin-center {
    margin: 0 auto;
}

/* Vertical margin 10px 0 0 (3 occurrences) */
.margin-top-10-0 {
    margin: 10px 0 0 0;
}

/* Vertical margin 20px no padding (3 occurrences) */
.margin-vertical-20-alt {
    margin: 20px 0;
}

/* Gray small text with margin (3 occurrences) */
.gray-small-text {
    font-size: 14px;
    color: #ccc;
    margin: 5px;
}

/* Gray light small text (3 occurrences) */
.gray-light-small-text {
    font-size: 11px;
    color: #aaa;
}

/* Light gray border box (3 occurrences) */
.light-gray-border-box {
    border: 1px solid #aaa;
    padding: 0 6px;
    background: #ffeeee;
}

/* Green background (3 occurrences) */
.green-bg {
    background: #47a447;
}

/* Light gray background variant (3 occurrences) */


/* Width 70% (2 occurrences) */
.width-70 {
    width: 70%;
}

/* Width 65px with small font (2 occurrences) */
.width-65-small-text {
    width: 65px;
    font-size: 11px;
}

/* Square thumbnail with margin (2 occurrences) */
.thumbnail-with-margin {
    width: 100px;
    height: 100px;
    margin: 3px;
}

/* Full width video/embed (2 occurrences) */
.full-width-height-350 {
    width: 100%;
    height: 350px;
}

/* Full width video/embed variant (2 occurrences) */
.full-width-height-300 {
    width: 100%;
    height: 300px;
}

/* Right align with small margin (2 occurrences) */
.right-align-margin-top {
    text-align: right;
    margin-top: 8px;
}

/* No padding (2 occurrences) */


/* Large vertical margin (2 occurrences) */
.margin-50-vertical {
    margin: 50px 0;
}

/* General margin 10px (2 occurrences) */


/*--------------------------------------------------------------------
Phase 4a: Complex Inline Styles
--------------------------------------------------------------------*/

/* h3 reset styling (4 occurrences) */
.h3-reset {
    display: block !important;
    width: calc(100% + 30px) !important;
    padding: 10px 15px !important;
    margin: -10px -15px 0 -15px !important;
    background-color: #d9edf7 !important;
    background-image: none !important;
    font-weight: bold !important;
    line-height: 1.5 !important;
}

/* h3 reset with background in panel heading */
.panel-heading .h3-reset {
    background-color: #d9edf7 !important;
}

/* Full-width button - specificity override via parent selector */
.btn-full-width {
    display: block !important;
    width: 100% !important;
    margin: 5px 0 !important;
    float: none !important;
}

/* Unified datetime display (all datetime UI) */
.datetime-meta {
    font-size: 0.85em;
    color: #888;
    font-weight: normal;
    white-space: nowrap;
}

/* Comment metadata text (3 occurrences) */
.comment-meta {
    font-size: 11px;
    color: #aaa;
}

/* Poster/Author badge (3 occurrences) */
.poster-badge {
    border: 1px solid #aaa;
    padding: 0 6px;
    background: #ffeeee;
}

/* Additional remaining complex styles */

/* Small text with margin-left-top combo (3 occurrences) */
.small-text-margin-left-top {
    font-size: 12px;
    margin: 0;
}

/* Gray text with margin (3 occurrences) */
.gray-text-margin {
    font-size: 14px;
    color: #ccc;
    margin: 5px;
}

/* Small font with bottom margin (3 occurrences) */
.small-font-margin-bottom {
    font-size: 11px;
    margin-bottom: 10px;
}

/* Width 65px with small text (2 occurrences) */
.width-65-small {
    width: 65px;
    font-size: 11px;
}

/* Full-width video embed 350px (2 occurrences) */
.video-embed-350 {
    width: 100%;
    height: 350px;
}

/* Full-width video embed 300px (2 occurrences) */
.video-embed-300 {
    width: 100%;
    height: 300px;
}

/* Right align with top margin (2 occurrences) */
.right-align-margin-top-8 {
    text-align: right;
    margin-top: 8px;
}

/* Table cell style (2 occurrences) */
.table-cell-style {
    padding: 15px 5px;
    width: 100%;
    text-align: left;
    font-size: 14px;
}

/* Text ellipsis with bold (2 occurrences) */
.text-ellipsis-bold {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: bold;
}

/* Center margin (2 occurrences) */
.margin-center-auto {
    margin: 0 auto;
}

/* Top margin 4px (2 occurrences) */


/* Top margin 0 with no background (2 occurrences) */


/* Bottom margin 0 (2 occurrences) */
.margin-bottom-0 {
    margin-bottom: 0;
}

/* Large text with padding (2 occurrences) */
.text-large-padded {
    font-size: 14px;
    padding: 6px 16px;
    line-height: 1.6;
    vertical-align: middle;
}

/* Small text with negative margins (2 occurrences) */
.small-text-negative-margins {
    font-size: 12px;
    margin-top: -10px;
    margin-right: -10px;
}

/* Display none (2 occurrences) */
.display-none {
    display: none;
}

/* Link inherit color (2 occurrences) */
.link-inherit {
    color: inherit;
    text-decoration: none;
}

/* No border (2 occurrences) */
.border-none {
    border: none;
}

/* Right border only (2 occurrences) */
.border-right-dashed {
    border-right: none;
    border-left: 5px solid #ddd;
}

/* Left border only (2 occurrences) */
.border-left-dashed {
    border-left: none;
    border-right: 5px solid #ddd;
}

/* White background with small text and padding (2 occurrences) */


/* White background with opacity (2 occurrences) */


/* White background with margin (2 occurrences) */


/* White background centered small text (2 occurrences) */


/* Bold post title links */
#main a[style*="background-color: #d9edf7"],
#main a[style*="background-color: #dae8f4"] {
    font-weight: bold !important;
}

/* Full-width select dropdowns */
.panel-primary .panel-body .form-control {
    width: 100% !important;
}



/* Button margin in news section */
#news .text-center {
    margin: 20px 0 !important;
}

/* White background variant small text (2 occurrences) */


/* Width 70% (already added but here for reference) */
.width-70-alt {
    width: 70%;
}

/* Padding and font size combo (single) */
.padding-font-combo {
    padding: 0;
    font-size: 12px;
}

/* ===== Search Grid (2-column layout) ===== */
.search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.search-grid-item {
    display: flex;
    width: 100%;
}

.search-panel {
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.search-panel-title {
    margin: 0;
    padding: 15px;
    font-size: 14px;
    font-weight: bold;
    background-color: #3097D1;
    color: #fff;
    border-bottom: 1px solid #ddd;
}

.search-panel-body {
    padding: 15px;
}

.search-panel-body .form-control {
    width: 100%;
    margin: 0;
}



/* ===== Dashboard Post Card Styling ===== */
.dashboard-post-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    padding: 15px;
}

.dashboard-post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.dashboard-post-title {
    margin: 0;
    padding: 0;
    font-size: 1.2em;
    font-weight: bold;
    flex-grow: 1;
}

.dashboard-post-title a {
    color: #333;
    text-decoration: none;
}

.dashboard-post-title a:hover {
    color: #000;
    text-decoration: underline;
}

.dashboard-post-title .badge {
    vertical-align: middle;
    margin-left: 5px;
    font-size: 0.6em;
}

.dashboard-post-header .dashboard-meta-info {
    font-size: 0.8em;
    color: #888;
    flex-shrink: 0;
    margin-left: 10px;
}

.dashboard-post-body {
    background: #f9f9f9;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.5;
}

.dashboard-post-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dotted #eee;
}

.dashboard-post-actions .btn {
    margin: 0;
    font-size: 0.8em;
    padding: 3px 12px;
    border-radius: 20px;
    /* Unified capsule style */
    font-weight: bold;
}

.edit-link {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 10px;
    font-size: 0.85em;
    color: #5cb85c;
    border: 1px solid #5cb85c;
    border-radius: 20px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.2s;
}

.edit-link:hover {
    background: #5cb85c;
    color: #fff;
    text-decoration: none;
}

/* Status Toggle Styles removed - now encapsulated in PostStatusToggler component */

.dashboard-post-messages {
    background: #f9f9f9;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
}

.btn-neutral-outline {
    background: transparent;
    border: 1px solid #ccc;
    color: #888;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 0.85em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-neutral-outline:hover {
    background: #eee;
    color: #666;
    border-color: #999;
}

.dashboard-post-messages h5 {
    margin: 0 0 10px 0;
    padding: 0;
    font-size: 14px;
    font-weight: bold;
}

.dashboard-post-messages .table {
    margin-bottom: 0;
    font-size: 12px;
}

/* ===== News Card Styling ===== */
.news-card {
    background: #fff;
    border: 1px solid #ddd;
    border-left: 4px solid #5cb85c;
    border-radius: 4px;
    margin-bottom: 15px;
    overflow: hidden;
}

.news-card-title {
    margin: 0;
    padding: 15px;
    background-color: #dff0d8;
    border-bottom: 1px solid #d6e9c6;
    font-weight: bold;
}

.news-card-title a {
    color: #3c763d;
    text-decoration: none;
}

.news-card-title a:hover {
    text-decoration: underline;
}

.news-card-body {
    padding: 15px;
}

.news-content {
    font-size: 12px;
    margin-bottom: 10px;
    line-height: 1.6;
    color: #333;
}

.news-link {
    text-align: right;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.news-link a {
    color: #0275d8;
    text-decoration: none;
    font-size: 12px;
}

.news-link a:hover {
    text-decoration: underline;
}

/*--------------------------------------------------------------------
Dashboard - Ignored Message Threads
--------------------------------------------------------------------*/

/* Visually dim ignored message thread rows */
tr.is-ignored {
    opacity: 0.5;
    background-color: #f9f9f9;
}

tr.is-ignored td {
    color: #999;
}

tr.is-ignored a.btn {
    opacity: 0.7;
}


/*--------------------------------------------------------------------
Dashboard Message Thread Redesign
--------------------------------------------------------------------*/

.dashboard-post-messages {
    margin-top: 15px;
}

.dashboard-post-messages h5 {
    font-weight: bold;
    color: #555;
}

.thread-list {
    margin-bottom: 0;
}

.thread-item {
    position: relative;
    padding: 10px 15px 10px 25px !important;
    border-left: 3px solid transparent !important;
}

.thread-item:hover {
    background-color: #fcfcfc;
}

.thread-item.is-dimmed {
    opacity: 0.7;
    background-color: #fafafa;
}

.thread-item.is-dimmed .thread-waiting-indicator {
    display: none;
}

.name-dimmed {
    color: #999 !important;
}

.thread-item.is-waiting {
    border-left-color: #3498db !important;
    background-color: #f7fbfe;
}

.thread-waiting-indicator {
    position: absolute;
    left: 8px;
    top: 12px;
    color: #3498db;
    font-size: 1.1em;
}


/*--------------------------------------------------------------------
  BS5-compatible Utilities (Phase 2 Cleanup)
--------------------------------------------------------------------*/
.m-0 { margin: 0; }
.p-0 { padding: 0; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.my-3 { margin-top: 1rem; margin-bottom: 1rem; }
.my-4 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.m-2 { margin: 0.5rem; }
.m-3 { margin: 1rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.bg-white { background-color: #fff; }
.bg-light { background-color: #f8f9fa; }
.small { font-size: 0.875em; }

/*--------------------------------------------------------------------
  Global Spacing Utilities (Bootstrap v5 style)
--------------------------------------------------------------------*/
.m-1 { margin: 0.25rem !important; }
.m-2 { margin: 0.5rem !important; }
.m-3 { margin: 1rem !important; }
.m-4 { margin: 1.5rem !important; }
.m-5 { margin: 3rem !important; }

.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.my-1 { margin-top: 0.25rem !important; margin-bottom: 0.25rem !important; }
.my-2 { margin-top: 0.5rem !important; margin-bottom: 0.5rem !important; }
.my-3 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
.my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.my-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }

.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.me-1 { margin-right: 0.25rem !important; }
.ms-1 { margin-left: 0.25rem !important; }
.m-0 { margin: 0 !important; }

.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }

.pt-1 { padding-top: 0.25rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.pt-5 { padding-top: 3rem !important; }

.pb-1 { padding-bottom: 0.25rem !important; }
.pb-2 { padding-bottom: 0.5rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.pb-5 { padding-bottom: 3rem !important; }

.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }

/*--------------------------------------------------------------------
  Modern Utility Classes (Bootstrap 5 Polyfills)
--------------------------------------------------------------------*/
/* Display */
.d-none { display: none !important; }
.d-flex { display: flex !important; }
.d-inline-block { display: inline-block !important; }

/* Flexbox */
.flex-column { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.flex-grow-1 { flex-grow: 1 !important; }

/* Gap */
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }

/* Text */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.text-decoration-line-through { text-decoration: line-through !important; }

/*--------------------------------------------------------------------
  Global Component Defaults
--------------------------------------------------------------------*/
/* Default margins for badges */
.label {
    margin-right: 5px;
    margin-bottom: 5px;
    display: inline-block;
}

/* Compact Panel modifier */
.panel-compact {
    margin-bottom: 10px;
}
.panel-compact > .panel-heading,
.panel-compact > .panel-footer {
    padding: 10px 15px;
}
.panel-compact > .panel-body {
    padding: 10px 15px;
}


/*--------------------------------------------------------------------
  Semantic UI Components
--------------------------------------------------------------------*/

/* Post Card */
.post-card {
    display: flex;
    flex-direction: column;
}
.post-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}
.post-card-title {
    margin: 0;
    flex-grow: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.post-card-meta {
    flex-shrink: 0;
}
.post-card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* News Card */
.news-card {
    margin-bottom: 15px;
}
.news-card-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Card (Homepage / Prefecture Index) */
.category-card {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f9f9f9;
    padding: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Ad Placeholder */
.ad-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    color: #777;
    font-size: 11px;
    text-align: center;
    background: #eee;
    border: 1px dashed #ccc;
}

/* Moderation Button */
.btn-moderate {
    padding: 5px 10px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}
/* Hide spinners from number inputs */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}
input[type=number] {
  -moz-appearance: textfield;
}

