/* assets/styles/app.css */
/* Add your custom styles here *//* featuredバナー用強調デザイン */
.featured-banner {
    background-color: #8bc7f7;
    color: #fff;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.featured-banner .category {
    color: #fff;
    font-size: 1.1em;
    margin-bottom: 8px;
}

.featured-banner .title {
    font-size: 1.3em;
    font-weight: bold;
}

/* リンク色をデフォルトに戻す */
.featured-post a {
    text-decoration: underline;
}

/*--------------------------------------------------------------------
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;
}

/* Hero/catch image - centered responsive image with LCP optimization */
.hero-catch-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

#topimage {
    /* CLS prevention - maintain 1200x360 aspect ratio */
    overflow: hidden;
}

/* Decorative header bar - replaces headerbar.jpg image with gradient */
#headerbar {
    width: 100%;
    height: 11px;
    background: linear-gradient(90deg, #F50005 0%, #F95E5A 50%, #CB0003 100%);
    display: block;
    margin: 5px 0;
}

/* Keep img-responsive for backward compatibility */
.img-responsive {
    max-width: 100%;
    height: auto;
}

/* Logo area padding-top and responsive sizing */
#logo {
    display: inline-block;
    padding-top: 7px;
    vertical-align: top;
}

#logo img {
    width: 173px; /* Default (Tablet) */
    height: auto;
    display: block;
}

@media (min-width: 1200px) {
    #logo img {
        width: 200px; /* PC */
    }
}

@media (max-width: 480px) {
    #logo img {
        width: 140px; /* Mobile */
        margin: 0 auto;
    }
}

/* Remove default Bootstrap container padding for mobile */
.container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

#submessage {
    display: inline-block !important;
    margin-left: 30px !important;
    vertical-align: top;
    padding-top: 7px;
}

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;
}

/* Category button container */
.category-button-container {
    display: block;
    margin: 0;
    padding: 0;
}

/* Category button default state */
.category-button {
    display: block;
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    color: #000;
    background-color: #efe;
    border: 1px solid #000;
    border-bottom: none;
    text-decoration: none;
    text-align: left;
    box-sizing: border-box;
    font-size: 14px;
}

.category-button:last-child {
    border-bottom: 1px solid #000;
}

.category-button:hover {
    background-color: #ddd;
}

/* Category button active/selected state */
.category-button-active {
    background-color: #fff;
}

/* Category button label */
.category-label {
    display: block;
}

/* Category support label */
.category-support-label {
    font-size: 11.5px;
    margin-top: 10px;
    text-align: right;
}

/* Remove gutter padding from button grid columns */
.panel-primary .panel-body .row>[class*="col-"] {
    padding-right: 0 !important;
    padding-left: 0 !important;
}

/* Category panel heading and body spacing */
.panel-primary {
    margin-bottom: 5px 0;
}

.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 h2 {
    font-size: 16px;
    height: 30px;
    margin: 15px 0;
    padding: 3px 24px 8px 12px;
    background: linear-gradient(180deg, #e8f4f8 0%, #d0e8f2 100%);
    border-top: 3px solid #057ff0;
    border-radius: 3px;
}

.main h3,
.sidebar h3 {
    font-size: 16px;
    margin: 15px 20px 15px 1px;
    padding: 2px 0 2px 22px;
    position: relative;
}

.main h3::before,
.sidebar h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #5fc956 0%, #4ab838 100%);
    border-radius: 2px;
}

/* Remove h3 decoration in grid list pages */
.posts-grid h3::before,
.category-post-title::before {
    display: none;
}

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

#topmessage {
    background: #428bca;
    color: #fff;
    padding: 5px;
}

#topmessage h1 {
    font-size: 14px;
    margin: 0;
}

#submessage {
    display: inline-block;
    margin-left: 30px;
    vertical-align: top;
    padding-top: 7px;
}

.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 (min-width: 1200px) {
    .main h2 {
        background: linear-gradient(90deg, #e8f4f8 0%, #d0e8f2 50%, #b8dce8 100%);
    }
}

@media (max-width: 992px) {
    #submessage {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1200px) {
    .header {
        padding: 0;
    }

    .sidebar {
        padding-left: 0;
    }

    .main {
        padding: 0;
    }

}

@media (max-width: 480px) {

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

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

    #logo {
        float: none !important;
        text-align: center;
        display: block;
    }

    #top {
        float: none !important;
    }

    #topmessage h1 {
        font-size: 11px;
    }

    #submessage {
        text-align: center;
        display: block;
        margin: 0;
    }

    /* 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 {
    font-size: 12px;
    margin: 0;
}

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

/* White background with small text (8 occurrences) */
.white-bg-small-text {
    background: #fff;
    font-size: 12px;
}

/* NO IMAGE placeholder - pure CSS replacement for noimage.png */
.no-image-placeholder {
    width: 98px;
    height: 98px;
    background-color: #f7f7f7;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    user-select: none;
    box-sizing: border-box;
}

/* Approval: Ultra-subtle room perspective (Vanishing point at 25% 45%) */
.no-image-placeholder::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        /* Back Wall (Larger for shallower depth, light grey) */
        linear-gradient(#e0e0e0, #e0e0e0) 25% 45% / 37.5% 37.5% no-repeat,
        /* Perspective at 25% 45% (Ultra-Subtle / Half-of-Half contrast) */
        conic-gradient(from 0deg at 25% 45%, 
            #eeeeee 0deg 59.0deg,     /* Right Wall */
            #d4d4d4 59.0deg 126.3deg,   /* Floor */
            #e9e9e9 126.3deg 204.4deg, /* Left Wall */
            #dadada 204.4deg 330.9deg, /* Ceiling */
            #eeeeee 330.9deg 360deg    /* Right Wall completion */
        );
    filter: blur(2.5px);
}

/* Atmospheric light details */
.no-image-placeholder::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        /* Faint window light source */
        linear-gradient(rgba(255, 255, 255, 0.2), transparent) 80% 25% / 12% 35% no-repeat,
        /* Ambient floor glow */
        radial-gradient(ellipse at 70% 85%, rgba(255, 255, 255, 0.15), transparent 70%);
    filter: blur(2.5px);
}

.no-image-placeholder .label-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    z-index: 3;
    color: rgba(0, 0, 0, 0.6);
    font-size: 15px;
    font-weight: 700;
    text-transform: lowercase;
    letter-spacing: 0.05em;
    pointer-events: none; /* Avoid interfering with clicks on the card */
}

/* Full width white background box with margin (6 occurrences) */
.white-bg-full-width {
    width: 100%;
    background: #fff;
    margin: 10px 0;
}

/* 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) */
.margin-top-10 {
    margin-top: 10px;
}

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

/* Light gray background (2 occurrences) */
.light-gray-bg {
    background: #eee;
}

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

/* Small text only (15 occurrences) */
.small-text-only {
    font-size: 12px;
}

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

/* White bg with small text (8 occurrences) */
.white-bg-small {
    background: #fff;
    font-size: 12px;
}

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

/* 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-bg {
    background: #fff;
}

/* White background variant (5 occurrences) */
.white-bg-variant {
    background: #ffffff;
}

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

/* Top margin 20px (4 occurrences) */
.margin-top-20 {
    margin-top: 20px;
}

/* 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) */
.light-gray-bg-variant {
    background: #eee;
}

/* 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) */
.padding-0 {
    padding: 0;
}

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

/* General margin 10px (2 occurrences) */
.margin-10 {
    margin: 10px;
}

/*--------------------------------------------------------------------
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) */
.margin-top-4 {
    margin-top: 4px;
}

/* Top margin 0 with no background (2 occurrences) */
.margin-top-0-bg-none {
    margin-top: 0;
    background: none;
}

/* 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-bg-small-padded {
    background: #fff;
    font-size: 11px;
    padding: 5px;
}

/* White background with opacity (2 occurrences) */
.white-bg-opacity {
    background: #fff;
    filter: alpha(opacity=60);
    -moz-opacity: 0.6;
    opacity: 0.6;
}

/* White background with margin (2 occurrences) */
.white-bg-margin-10 {
    background: #ffffff;
    font-size: 12px;
    margin: 10px 0;
}

/* White background centered small text (2 occurrences) */
.white-bg-center-small {
    background: #fff;
    text-align: center;
    font-size: 12px;
}

/* 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;
}

/* Reduce panel-body padding for post content */
.panel-info .panel-body {
    padding: 3px 8px !important;
    margin: 0 !important;
}

.panel-info .panel-heading {
    padding: 0 !important;
    margin: 0 !important;
}

/* Further compress the media content in panels */
.panel-info .media {
    margin-top: 5px !important;
    margin-bottom: 0 !important;
}

/* Specific post panel h4 styling */
.panel-info .panel-body h4 {
    margin: 3px 2px 5px 2px !important;
    padding: 0 !important;
}

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

/* White background variant small text (2 occurrences) */
.white-bg-small-variant {
    background: #fff;
    font-size: 12px;
}

/* 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;
}

.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;
}

/* ===== Posts Grid (2-column layout) ===== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.posts-grid-item {
    display: flex;
}

.post-card {
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.post-card-title {
    margin: 0;
    padding: 0;
    background-color: #d9edf7;
    border-bottom: 1px solid #bce8f1;
    display: flex;
    align-items: center;
}

.post-card-title a {
    display: block;
    flex: 1;
    padding: 10px 15px;
    margin: 0;
    color: #31708f;
    text-decoration: none;
    font-weight: bold;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-card-title a:hover {
    background-color: #c1e1f5;
}

.post-card-title .datetime-meta {
    padding: 0 15px 0 0;
    flex-shrink: 0;
}

.post-card-body {
    padding: 8px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-category {
    margin: 3px 0 8px 0;
    padding: 0;
    font-size: 12px;
    font-weight: bold;
}

.post-content {
    display: flex;
    gap: 8px;
    flex-grow: 1;
}

.post-image {
    flex-shrink: 0;
}

.post-image img {
    display: block;
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 2px;
}

.post-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    font-size: 11px;
}

.post-address,
.post-author,
.post-date {
    margin: 2px 0;
    color: #333;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.post-action {
    margin-top: auto;
    padding-top: 8px;
    text-align: right;
}

.post-action .btn {
    padding: 2px 6px;
    font-size: 11px;
}

/* ===== 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;
}

.dashboard-post-body .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;
}

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

/* Status Toggle Styles */
.status-toggle-group {
    display: inline-flex;
    margin-left: 15px;
    background: #f1f1f1;
    padding: 2px;
    border-radius: 20px;
    vertical-align: middle;
}

.status-toggle-item {
    position: relative;
    display: inline-block;
}

.status-toggle-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.status-toggle-label {
    display: block;
    padding: 3px 12px;
    font-size: 0.8em;
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.2s;
    color: #888;
}

.status-toggle-item input[type="radio"]:checked+.status-toggle-label {
    background: #5cb85c;
    color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.status-toggle-item input[type="radio"]:checked+.status-toggle-label.status-stopped {
    background: #f0ad4e;
}

.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;
}

.thread-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.thread-applicant-name {
    font-weight: bold;
    max-width: 180px;
    display: inline-block;
    vertical-align: middle;
}

.thread-meta {
    font-size: 0.85em;
    color: #888;
}

.thread-excerpt {
    display: block;
    color: #666;
    margin-top: 2px;
    text-decoration: none !important;
}

.thread-excerpt:hover {
    color: #333;
}

.thread-badges {
    margin-top: 5px;
}

.thread-badges .badge,
.thread-badges .label {
    margin-right: 4px;
    font-size: 0.8em;
    padding: 2px 5px;
}

.thread-actions {
    margin-top: 5px;
    text-align: right;
}

.thread-actions .btn-link {
    font-size: 0.9em;
    padding: 0 5px;
    color: #999;
    text-decoration: none;
}

.thread-actions .btn-link:hover {
    color: #d9534f;
}

@media (max-width: 767px) {
    .thread-item {
        padding-left: 20px !important;
    }

    .thread-applicant-name {
        max-width: 120px;
    }
}

/* ── Messenger-style message thread ── */
.msg-thread {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 15px 0;
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.msg-row {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    max-width: 80%;
}

.msg-row.is-mine {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.msg-row.is-theirs {
    align-self: flex-start;
    flex-direction: row;
}

.msg-bubble {
    padding: 10px 14px;
    border-radius: 18px;
    word-break: break-word;
    line-height: 1.5;
    font-size: 14px;
}

.msg-row.is-mine .msg-bubble {
    background: #d9edf7;
    border-bottom-right-radius: 4px;
    color: #2a5f7a;
}

.msg-row.is-theirs .msg-bubble {
    background: #f0f0f0;
    border-bottom-left-radius: 4px;
    color: #333;
}

.msg-time {
    font-size: 0.7em;
    color: #999;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: flex-end;
    padding-bottom: 2px;
}

.msg-thread-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 5px;
    clear: both;
    overflow: hidden;
}

.msg-thread-header .counterpart-name {
    font-weight: bold;
    font-size: 1.1em;
}

.msg-moderated {
    align-self: center;
    max-width: 90%;
    text-align: center;
    font-size: 0.85em;
    color: #999;
    padding: 4px 0;
}

/* Ignore toggle button in thread header */
.msg-ignore-btn {
    font-size: 0.8em;
    padding: 2px 10px;
    border-radius: 12px;
    border: 1px solid #ccc;
    background: #fff;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: auto;
}

.msg-ignore-btn:hover {
    background: #f5f5f5;
}

.msg-ignore-btn.is-ignored {
    background: #f2dede;
    border-color: #d9534f;
    color: #d9534f;
}

/* Messenger-style reply form */
.msg-reply-bar {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    padding: 10px 0;
    border-top: 1px solid #eee;
    margin-top: 10px;
}

.msg-reply-bar textarea {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 18px;
    padding: 8px 14px;
    font-size: 14px;
    resize: vertical;
    line-height: 1.4;
    outline: none;
}

.msg-reply-bar textarea:focus {
    border-color: #66afe9;
    box-shadow: 0 0 0 2px rgba(102, 175, 233, 0.2);
}

.msg-reply-bar .msg-send-btn {
    background: #5cb85c;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 16px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.msg-reply-bar .msg-send-btn:hover {
    background: #449d44;
}

.msg-reply-caution {
    font-size: 0.75em;
    color: #999;
    padding: 4px 0 0;
}

@media (max-width: 767px) {
    .msg-row {
        max-width: 90%;
    }
}

/* ── Public comment cards ── */
.comment-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.comment-card {
    padding: 12px 14px;
    border-bottom: 1px solid #eee;
}

.comment-card-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.comment-card-header .comment-serial {
    font-size: 0.8em;
    color: #aaa;
}

.comment-card-header .comment-author {
    font-weight: 600;
    font-size: 0.9em;
    color: #333;
}

.comment-card-header .comment-poster-badge {
    display: inline-block;
    font-size: 0.75em;
    padding: 1px 6px;
    border-radius: 3px;
    background: #e8f5e9;
    color: #2e7d32;
    font-weight: 600;
}

.comment-card-header .comment-time {
    margin-left: auto;
    font-size: 0.8em;
    color: #999;
}

.comment-card-body {
    font-size: 13px;
    line-height: 1.6;
    padding: 6px 0 6px 12px;
    border-left: 3px solid #e0e0e0;
    color: #444;
}

.comment-card.is-poster .comment-card-body {
    border-left-color: #a5d6a7;
}

.comment-card-body.is-moderated {
    color: #999;
    font-style: italic;
    border-left-color: #eee;
}

.comment-card-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 4px;
}

.comment-card-actions a {
    font-size: 0.8em;
    color: #999;
    text-decoration: none;
}

.comment-card-actions a:hover {
    color: #555;
}

/* Public comment form */
.comment-form-public {
    border: 1px solid #ffe082;
    border-radius: 8px;
    background: #fffde7;
    padding: 14px 18px;
    margin-top: 15px;
}

.comment-form-public .public-label {
    font-size: 0.85em;
    color: #e65100;
    font-weight: 600;
    margin-bottom: 8px;
}

.comment-form-public textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    resize: vertical;
    line-height: 1.5;
    outline: none;
    box-sizing: border-box;
}

.comment-form-public textarea:focus {
    border-color: #ffb74d;
    box-shadow: 0 0 0 2px rgba(255, 183, 77, 0.2);
}

.comment-form-public .comment-form-caution {
    font-size: 0.75em;
    color: #888;
    margin-top: 6px;
    line-height: 1.5;
}

.comment-form-public .comment-submit-btn {
    background: #ef6c00;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 6px 18px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
}

.comment-form-public .comment-submit-btn:hover {
    background: #e65100;
}

.comment-section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 15px 0 10px;
    font-size: 1.1em;
    font-weight: 600;
}

/*--------------------------------------------------------------------
  Twig Component CSS imports
--------------------------------------------------------------------*/
@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";