Toggle menu
17
24
14
1.7K
Landrace.Wiki - The Landrace Cannabis Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:PortalCurrentEvents/styles.css: Difference between revisions

Template page
No edit summary
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* ============================================ */
/* ============================================ */
/* CURRENT EVENTS PORTAL - COMPACT CALENDAR VERSION */
/* CURRENT EVENTS PORTAL (QUERY-DRIVEN, CLEAN)  */
/* ============================================ */
/* ============================================ */


/* WRAPPER & HEADER */
/* -------------------------------------------- */
/* WRAPPER / HEADER                             */
/* -------------------------------------------- */
 
.portal-events-wrapper {
.portal-events-wrapper {
     max-width: 1400px;
     max-width: 1400px;
Line 12: Line 15:
.portal-events-header {
.portal-events-header {
     background: linear-gradient(135deg, #f7faf6 0%, #eef4ea 100%);
     background: linear-gradient(135deg, #f7faf6 0%, #eef4ea 100%);
    border: 1px solid #c5d2c0;
     border-radius: 12px;
     border-radius: 12px;
    border: 1px solid #c5d2c0;
     padding: 1.2rem 1.5rem;
     padding: 1.2rem 1.5rem;
     margin-bottom: 1.25rem;
     margin-bottom: 1.25rem;
Line 28: Line 31:
}
}


.portal-events-nav a:hover {
.portal-events-nav a:hover { text-decoration: underline; }
    text-decoration: underline;
 
 
/* -------------------------------------------- */
/* LAYOUT GRID (FEED + SIDEBAR)                */
/* -------------------------------------------- */
 
.portal-events-grid {
    display: grid;
    grid-template-columns: 60% 38%;
    gap: 2%;
    align-items: start;
}
 
.portal-events-feed {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
 
.portal-events-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 1rem;
}
 
/* -------------------------------------------- */
/* RESPONSIVE                                  */
/* -------------------------------------------- */
 
/* only collapse to 1 column on actual tablets/phones */
@media (max-width: 850px) {
    .portal-events-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .portal-events-sidebar {
        position: static;
        top: auto;
    }
    .guidelines-grid {
        grid-template-columns: 1fr;
    }
}
}


/* ============================================ */
/* -------------------------------------------- */
/* CALENDAR NAVIGATION - SIDEBAR MINI VERSION */
/* CALENDAR (SIDEBAR MINI)                      */
/* ============================================ */
/* -------------------------------------------- */


.portal-events-calendar {
.portal-events-calendar {
Line 41: Line 87:
     border-radius: 8px;
     border-radius: 8px;
     padding: 0.45rem 0.55rem;
     padding: 0.45rem 0.55rem;
    margin-bottom: 1.25rem;
     box-shadow: 0 1px 2px rgba(0,0,0,0.03);
     box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
}


/* Month Navigation */
/* Month nav */
.calendar-month-nav {
.calendar-month-nav {
     display: flex;
     display: flex;
Line 79: Line 124:


.calendar-nav-link a {
.calendar-nav-link a {
     color: #3a4a2e;
     color: inherit;
     text-decoration: none;
     text-decoration: none;
}
}


.calendar-nav-link:hover {
.calendar-nav-link:hover { background: #e3ebe0; }
    background: #e3ebe0;
.calendar-nav-disabled { opacity: 0.45; }
}


.calendar-nav-disabled {
/* Week headers */
    opacity: 0.45;
}
 
/* Weekday Headers */
.calendar-week-headers {
.calendar-week-headers {
     display: grid;
     display: grid;
Line 109: Line 149:
}
}


/* Month Grid */
/* Month grid */
.calendar-month-grid {
.calendar-month-grid {
     display: grid;
     display: grid;
Line 144: Line 184:
}
}


/* Empty cells */
.calendar-day.empty {
.calendar-day.empty {
     background: transparent;
     background: transparent;
Line 150: Line 189:
}
}


/* Days with events */
.calendar-day.has-events {
.calendar-day.has-events {
     background: #5b7a45;
     background: #5b7a45;
Line 164: Line 202:
     background: #4a6337;
     background: #4a6337;
     transform: translateY(-1px);
     transform: translateY(-1px);
     box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
     box-shadow: 0 1px 2px rgba(0,0,0,0.12);
}
}


/* Today indicator */
.calendar-day.today {
.calendar-day.today {
     border: 2px solid #d4842f;
     border: 2px solid #d4842f;
Line 173: Line 210:
}
}


.calendar-day.today a {
.calendar-day.today a { color: #d4842f; }
    color: #d4842f;
}


.calendar-day.today.has-events {
.calendar-day.today.has-events {
     background: #5b7a45;
     background: #5b7a45;
     border: 2px solid #d4842f;
     border: 2px solid #d4842f;
     box-shadow: 0 0 0 2px rgba(212, 132, 47, 0.12);
     box-shadow: 0 0 0 2px rgba(212,132,47,0.12);
}
}


.calendar-day.today.has-events a {
.calendar-day.today.has-events a { color: #ffffff; }
    color: #ffffff;
}


/* Regular days hover */
.calendar-day:not(.has-events):not(.empty):hover {
.calendar-day:not(.has-events):not(.empty):hover {
     background: #f0f5ed;
     background: #f0f5ed;
Line 193: Line 225:
}
}


/* Event indicator dot */
.calendar-day.has-events::after {
.calendar-day.has-events::after {
     content: '';
     content: '';
Line 202: Line 233:
     width: 2px;
     width: 2px;
     height: 2px;
     height: 2px;
     background: rgba(255, 255, 255, 0.85);
     background: rgba(255,255,255,0.85);
     border-radius: 50%;
     border-radius: 50%;
}
}


/* Archive Links */
.calendar-archive-link {
.calendar-archive-link {
     text-align: center;
     text-align: center;
Line 228: Line 258:
}
}


/* Mini calendar mobile tune */
@media (max-width: 768px) {
    .calendar-month-grid {
        grid-auto-rows: 20px;
    }
    .calendar-day {
        height: 20px;
        font-size: 0.58rem;
    }
    .calendar-weekday {
        font-size: 0.5rem;
    }
}
/* ============================================ */
/* TWO-COLUMN GRID */
/* ============================================ */


.portal-events-grid {
/* -------------------------------------------- */
    display: grid;
/* SIDEBAR CARDS                                */
    grid-template-columns: 60% 38%;
/* -------------------------------------------- */
    gap: 2%;
}


/* ============================================ */
.sidebar-card {
/* LEFT COLUMN: CHRONOLOGICAL FEED */
/* ============================================ */
 
.portal-events-feed {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
 
/* DAY CARD */
.day-card {
     background: #ffffff;
     background: #ffffff;
     border: 1px solid #d2ddce;
     border: 1px solid #d2ddce;
     border-radius: 10px;
     border-radius: 10px;
     overflow: hidden;
     overflow: hidden;
     box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
     box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}
}


.day-header {
.sidebar-title {
     background: linear-gradient(135deg, #3a5228 0%, #2d4120 100%);
     font-size: 1rem;
     padding: 0.9rem 1.25rem;
    font-weight: 700;
    color: #ffffff;
     padding: 0.85rem 1.1rem;
    margin: 0;
     display: flex;
     display: flex;
    justify-content: space-between;
     align-items: center;
     align-items: center;
    gap: 0.5rem;
}
}


.day-date {
.sidebar-icon { font-size: 1.1rem; }
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}


.day-count {
/* Card type headers */
    font-size: 0.85rem;
.sidebar-ongoing .sidebar-title {
    color: #b8d4a8;
     background: linear-gradient(135deg, #6a5b86 0%, #54486b 100%);
     background: rgba(255, 255, 255, 0.15);
    padding: 0.25rem 0.7rem;
    border-radius: 12px;
}
}
 
.sidebar-enforcement .sidebar-title {
.day-events {
     background: linear-gradient(135deg, #c75b3c 0%, #a84a2f 100%);
     padding: 1rem 1.25rem 1.25rem;
}
}
 
.sidebar-fieldwork .sidebar-title {
/* EVENT ITEM */
     background: linear-gradient(135deg, #4a7c9d 0%, #3a6379 100%);
.event-item {
     padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid #d2ddce;
    background: #fafbf9;
    border-radius: 6px;
}
}
 
.sidebar-policy .sidebar-title {
.event-item:last-child {
     background: linear-gradient(135deg, #5b7a45 0%, #4a6337 100%);
     margin-bottom: 0;
}
}


/* Event Type Color Coding */
.sidebar-list {
.event-policy {
     padding: 0.7rem 1.1rem 0.9rem;
     border-left-color: #5b7a45;
    background: #f7faf5;
}
}


.event-enforcement {
.sidebar-item {
     border-left-color: #c75b3c;
     padding: 0.65rem 0;
     background: #fef7f5;
     border-bottom: 1px solid #e8ede5;
}
}


.event-fieldwork {
.sidebar-item:last-child { border-bottom: none; }
    border-left-color: #4a7c9d;
    background: #f5f9fb;
}


.event-meta {
.sidebar-date {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
    align-items: center;
}
 
.event-tag {
     font-size: 0.75rem;
     font-size: 0.75rem;
     font-weight: 600;
     color: #5a6650;
     text-transform: uppercase;
     font-weight: 700;
     letter-spacing: 0.05em;
     margin-bottom: 0.2rem;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
}
}


.tag-policy {
.sidebar-region {
     background: #5b7a45;
     font-size: 0.85rem;
     color: #ffffff;
     color: #26351a;
    font-weight: 700;
    margin-bottom: 0.1rem;
}
}


.tag-enforcement {
.sidebar-status {
    background: #c75b3c;
     font-size: 0.75rem;
    color: #ffffff;
}
 
.tag-fieldwork {
    background: #4a7c9d;
    color: #ffffff;
}
 
.event-region {
     font-size: 0.8rem;
     color: #5a6650;
     color: #5a6650;
     font-weight: 500;
     margin-bottom: 0.3rem;
}
}


.event-title {
.sidebar-link {
     font-size: 1rem;
     font-size: 0.85rem;
    font-weight: 600;
     color: #3a4a2e;
     color: #26351a;
    margin-bottom: 0.5rem;
     line-height: 1.4;
     line-height: 1.4;
}
}


.event-body {
.sidebar-link a {
    font-size: 0.9rem;
     color: #3a5228;
     color: #3a4a2e;
     text-decoration: none;
    line-height: 1.6;
     margin-bottom: 0.6rem;
}
}


.event-links {
.sidebar-link a:hover { text-decoration: underline; }
     font-size: 0.8rem;
 
     color: #5a6650;
.sidebar-footer {
    padding-top: 0.5rem;
     padding: 0.65rem 1.1rem;
     background: #f7faf6;
     border-top: 1px solid #e8ede5;
     border-top: 1px solid #e8ede5;
    font-size: 0.85rem;
}
}


.event-links a {
.sidebar-footer a {
     color: #3a5228;
     color: #3a5228;
     text-decoration: none;
     text-decoration: none;
    font-weight: 600;
}
}


.event-links a:hover {
.sidebar-footer a:hover { text-decoration: underline; }
    text-decoration: underline;
 
}


/* -------------------------------------------- */
/* NEWS CARD (FEED ITEM)                        */
/* -------------------------------------------- */


/* ============================================ */
.news-card {
/* RIGHT COLUMN: SIDEBAR */
    background: #ffffff;
/* ============================================ */
    border: 1px solid #e1e6df;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}


.portal-events-sidebar {
.news-card::before {
     display: flex;
     content: '';
     flex-direction: column;
    position: absolute;
     gap: 1.25rem;
    left: 0;
    top: 0;
     bottom: 0;
    width: 4px;
     background: #d2ddce;
}
}


.sidebar-card {
.news-card:hover {
    background: #ffffff;
     border-color: #c5d2c0;
     border: 1px solid #d2ddce;
     box-shadow: 0 3px 10px rgba(0,0,0,0.07);
    border-radius: 10px;
    transform: translateY(-1px);
    overflow: hidden;
     box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}
}


.sidebar-title {
/* Category accents */
    font-size: 1rem;
.news-card--policy::before { background: #5b7a45; }
    font-weight: 600;
.news-card--enforcement::before { background: #c75b3c; }
    color: #ffffff;
.news-card--fieldwork::before { background: #4a7c9d; }
    padding: 0.9rem 1.25rem;
.news-card--research::before { background: #7a6c3a; }
    margin: 0;
.news-card--community::before { background: #6a5b86; }
 
/* Header */
.news-card__header {
     display: flex;
     display: flex;
     align-items: center;
     align-items: center;
     gap: 0.5rem;
    justify-content: space-between;
     gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #fafbf9;
    border-bottom: 1px solid #eff3ed;
}
}


.sidebar-icon {
.news-card__date {
     font-size: 1.1rem;
     font-size: 0.75rem;
    font-weight: 700;
    color: #55624d;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
}


/* Sidebar Card Type Styling */
.news-card__category-badge {
.sidebar-enforcement .sidebar-title {
    font-size: 0.6rem;
     background: linear-gradient(135deg, #c75b3c 0%, #a84a2f 100%);
    font-weight: 800;
     text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    color: #ffffff;
    line-height: 1;
}
}


.sidebar-fieldwork .sidebar-title {
.news-card__category-badge--policy { background: #5b7a45; }
    background: linear-gradient(135deg, #4a7c9d 0%, #3a6379 100%);
.news-card__category-badge--enforcement { background: #c75b3c; }
}
.news-card__category-badge--fieldwork { background: #4a7c9d; }
.news-card__category-badge--research { background: #7a6c3a; }
.news-card__category-badge--community { background: #6a5b86; }


.sidebar-policy .sidebar-title {
.news-card--policy .news-card__category-badge{ background:#5b7a45; }
    background: linear-gradient(135deg, #5b7a45 0%, #4a6337 100%);
.news-card--enforcement .news-card__category-badge{ background:#c75b3c; }
}
.news-card--fieldwork .news-card__category-badge{ background:#4a7c9d; }
.news-card--research .news-card__category-badge{ background:#7a6c3a; }
.news-card--community .news-card__category-badge{ background:#6a5b86; }
.news-card__category-badge{ color:#fff; }


.sidebar-conservation .sidebar-title {
/* Region */
     background: linear-gradient(135deg, #3a5228 0%, #2d4120 100%);
.news-card__region {
     padding: 0.45rem 1rem 0;
    font-size: 0.78rem;
    color: #7a8472;
    font-weight: 500;
    font-style: italic;
}
}


.sidebar-list {
/* Title */
     padding: 0.75rem 1.25rem 1rem;
.news-card__title {
     padding: 0.55rem 1rem 0.2rem;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.45;
    color: #1a2612;
    margin: 0;
}
}


.sidebar-item {
.news-card__title a {
     padding: 0.75rem 0;
     color: inherit;
     border-bottom: 1px solid #e8ede5;
     text-decoration: none;
}
}


.sidebar-item:last-child {
.news-card__title a:hover { text-decoration: underline; }
    border-bottom: none;
}


.sidebar-date {
/* Summary */
     font-size: 0.75rem;
.news-card__summary {
     color: #5a6650;
     padding: 0.2rem 1rem 0.85rem;
     font-weight: 600;
     font-size: 0.92rem;
     margin-bottom: 0.25rem;
     line-height: 1.6;
     color: #34402d;
}
}


.sidebar-region {
/* Footer */
     font-size: 0.85rem;
.news-card__footer {
     color: #26351a;
     padding: 0.6rem 1rem 0.7rem;
     font-weight: 600;
     border-top: 1px solid #eff3ed;
    margin-bottom: 0.15rem;
     background: #fafbf9;
}
}


.sidebar-status {
.news-card__links {
     font-size: 0.75rem;
     font-size: 0.8rem;
     color: #5a6650;
     color: #5a6650;
    margin-bottom: 0.35rem;
}
}


.sidebar-link {
.news-card__links a {
    font-size: 0.85rem;
     color: #2f4a22;
    color: #3a4a2e;
    line-height: 1.4;
}
 
.sidebar-link a {
     color: #3a5228;
     text-decoration: none;
     text-decoration: none;
    font-weight: 700;
}
}


.sidebar-link a:hover {
.news-card__links a:hover {
    color: #5b7a45;
     text-decoration: underline;
     text-decoration: underline;
}
}


.sidebar-footer {
 
     padding: 0.75rem 1.25rem;
/* -------------------------------------------- */
     background: #f7faf6;
/* STORY EVENT PAGES                            */
     border-top: 1px solid #e8ede5;
/* -------------------------------------------- */
     font-size: 0.85rem;
 
.story-card {
     background: #ffffff;
     border: 1px solid #d2ddce;
     border-radius: 10px;
    padding: 1.1rem 1.25rem;
     box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}
}


.sidebar-footer a {
.story-header { margin-bottom: 0.8rem; }
    color: #3a5228;
 
     text-decoration: none;
.story-title {
     font-weight: 500;
     font-size: 1.35rem;
     font-weight: 700;
    color: #26351a;
}
}


.sidebar-footer a:hover {
.story-subtitle {
     text-decoration: underline;
    font-size: 0.95rem;
    color: #5a6650;
     margin-top: 0.2rem;
}
}


/* CONSERVATION STATUS GRID */
.story-body {
.status-grid {
     font-size: 0.95rem;
     display: grid;
     line-height: 1.65;
     grid-template-columns: repeat(3, 1fr);
     color: #3a4a2e;
     gap: 0.75rem;
     margin-bottom: 1rem;
     padding: 1rem 1.25rem;
}
}


.status-item {
.story-timeline-item {
     text-align: center;
     border-left: 3px solid #d2ddce;
     padding: 0.75rem 0.5rem;
    background: #fafbf9;
     padding: 0.7rem 0.9rem;
     border-radius: 6px;
     border-radius: 6px;
     border: 2px solid;
     margin-bottom: 0.7rem;
}
}


.status-critical {
.story-timeline-date {
     border-color: #c75b3c;
     font-size: 0.8rem;
     background: #fef7f5;
    font-weight: 700;
    color: #26351a;
     margin-bottom: 0.25rem;
}
}


.status-eradications {
.story-timeline-meta {
     border-color: #d4842f;
     font-size: 0.78rem;
     background: #fef9f3;
    color: #5a6650;
    margin-bottom: 0.3rem;
    display: flex;
    gap: 0.5rem;
     flex-wrap: wrap;
}
}


.status-active {
.story-timeline-tag {
     border-color: #5b7a45;
    background: #eef4ea;
     background: #f7faf5;
    border: 1px solid #d2ddce;
    padding: 0.1rem 0.4rem;
     border-radius: 4px;
     font-weight: 600;
}
}


.status-label {
.story-timeline-text {
     font-size: 0.75rem;
     font-size: 0.9rem;
    font-weight: 600;
     color: #3a4a2e;
     color: #3a4a2e;
     margin-bottom: 0.25rem;
     line-height: 1.55;
}
}


.status-count {
    font-size: 1.25rem;
    font-weight: 700;
    color: #26351a;
}


/* ============================================ */
/* -------------------------------------------- */
/* UPDATE GUIDELINES */
/* CONTRIBUTING / GUIDELINES BOX                */
/* ============================================ */
/* -------------------------------------------- */


.portal-events-guidelines {
.portal-events-guidelines {
Line 584: Line 599:
}
}


.guideline-item strong {
.guideline-item strong { color: #26351a; }
    color: #26351a;
 
.guidelines-footer-link {
    margin-top: 0.9rem;
    font-size: 0.9rem;
    font-weight: 700;
}
}


.portal-events-guidelines p {
.guidelines-footer-link a {
    font-size: 0.85rem;
     color: #3a5228;
     color: #4c5d44;
     text-decoration: none;
    margin: 0;
     line-height: 1.6;
}
}


/* ============================================ */
.guidelines-footer-link a:hover { text-decoration: underline; }
/* RESPONSIVE DESIGN (MOBILE OPTIMIZED) */
 
/* ============================================ */
 
/* -------------------------------------------- */
/* RESPONSIVE                                   */
/* -------------------------------------------- */


@media (max-width: 1100px) {
@media (max-width: 1100px) {
     .portal-events-grid {
     .portal-events-grid {
         grid-template-columns: 1fr;
         grid-template-columns: 1fr;
        gap: 1.25rem;
     }
     }
     .portal-events-sidebar {
     .portal-events-sidebar {
         margin-top: 0;
         position: static;
        top: auto;
     }
     }
     .guidelines-grid {
     .guidelines-grid {
         grid-template-columns: 1fr;
         grid-template-columns: 1fr;
Line 615: Line 633:


@media (max-width: 768px) {
@media (max-width: 768px) {
    /* overall page breathing room */
     .portal-events-wrapper { padding: 0 0.6rem; }
     .portal-events-wrapper {
        padding: 0 0.6rem;
    }


     .portal-events-header {
     .portal-events-header {
Line 631: Line 646:
     }
     }


    /* calendar in sidebar should feel like a widget */
     .news-card__header {
     .portal-events-calendar {
        padding: 0.45rem 0.55rem;
        border-radius: 8px;
    }
 
    /* month nav stacks cleanly */
    .calendar-month-nav {
        flex-direction: row;
        gap: 0.4rem;
    }
 
    .calendar-current-month {
        font-size: 0.75rem;
        text-align: center;
        flex: 1;
    }
 
    .calendar-nav-link {
        font-size: 0.68rem;
        padding: 0.15rem 0.35rem;
    }
 
    /* day cards tighten and headers stack */
    .day-header {
         flex-direction: column;
         flex-direction: column;
         align-items: flex-start;
         align-items: flex-start;
         gap: 0.35rem;
         gap: 0.4rem;
         padding: 0.8rem 1rem;
         padding: 0.7rem 0.9rem;
    }
 
    .day-date {
        font-size: 1rem;
    }
 
    .day-count {
        font-size: 0.78rem;
        padding: 0.2rem 0.55rem;
    }
 
    .day-events {
        padding: 0.85rem 1rem 1rem;
     }
     }
 
     .news-card__region {
     .event-item {
         padding: 0.4rem 0.9rem 0;
         padding: 0.85rem;
         font-size: 0.74rem;
         margin-bottom: 0.85rem;
     }
     }
 
     .news-card__title {
    /* meta row wraps instead of overflowing */
         padding: 0.5rem 0.9rem 0.2rem;
     .event-meta {
         font-size: 0.98rem;
         flex-wrap: wrap;
        row-gap: 0.35rem;
         column-gap: 0.5rem;
     }
     }
 
     .news-card__summary {
     .event-title {
         padding: 0.2rem 0.9rem 0.75rem;
         font-size: 0.95rem;
    }
 
    .event-body {
         font-size: 0.88rem;
         font-size: 0.88rem;
        line-height: 1.55;
     }
     }
 
     .news-card__footer {
     .event-links {
         padding: 0.55rem 0.9rem 0.65rem;
         font-size: 0.78rem;
     }
     }


    /* sidebar cards tighter */
     .sidebar-title {
     .sidebar-title {
         padding: 0.8rem 1rem;
         padding: 0.8rem 1rem;
         font-size: 0.95rem;
         font-size: 0.95rem;
     }
     }
 
     .sidebar-list { padding: 0.6rem 1rem 0.85rem; }
     .sidebar-list {
     .sidebar-item { padding: 0.6rem 0; }
        padding: 0.6rem 1rem 0.85rem;
     .sidebar-link { font-size: 0.83rem; }
    }
 
     .sidebar-item {
        padding: 0.65rem 0;
    }
 
     .sidebar-link {
        font-size: 0.83rem;
    }
 
     .sidebar-footer {
     .sidebar-footer {
         padding: 0.6rem 1rem;
         padding: 0.6rem 1rem;
Line 725: Line 682:


@media (max-width: 600px) {
@media (max-width: 600px) {
    /* even tighter cards + calendar */
    .day-card,
    .sidebar-card {
        border-radius: 8px;
    }
    .event-tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
    /* calendar grid slightly smaller */
     .calendar-week-headers,
     .calendar-week-headers,
     .calendar-month-grid {
     .calendar-month-grid { gap: 0.16rem; }
        gap: 0.16rem;
    }
 
    .calendar-month-grid {
        grid-auto-rows: 20px;
    }
 
    .calendar-day {
        height: 20px;
        font-size: 0.58rem;
    }
 
    .calendar-weekday {
        font-size: 0.5rem;
    }


     .calendar-archive-link {
    .calendar-month-grid { grid-auto-rows: 20px; }
        font-size: 0.63rem;
    .calendar-day { height: 20px; font-size: 0.58rem; }
    }
    .calendar-weekday { font-size: 0.5rem; }
     .calendar-archive-link { font-size: 0.63rem; }
}
}


@media (max-width: 480px) {
@media (max-width: 480px) {
    /* kill any leftover horizontal cramp */
     .portal-events-wrapper { padding: 0 0.45rem; }
     .portal-events-wrapper {
        padding: 0 0.45rem;
    }
 
    .portal-events-header {
        padding: 0.75rem 0.85rem;
    }


    .day-header {
        padding: 0.7rem 0.85rem;
    }
    .day-events {
        padding: 0.75rem 0.85rem 0.9rem;
    }
    .event-item {
        padding: 0.75rem;
    }
    .event-title {
        font-size: 0.92rem;
    }
    .event-body {
        font-size: 0.86rem;
    }
    .sidebar-title {
        font-size: 0.9rem;
    }
    /* month nav wraps instead of squishing */
     .calendar-month-nav {
     .calendar-month-nav {
         flex-wrap: wrap;
         flex-wrap: wrap;
         row-gap: 0.3rem;
         row-gap: 0.3rem;
     }
     }
     .calendar-nav-link,
     .calendar-nav-link,
     .calendar-current-month {
     .calendar-current-month {
Line 805: Line 703:
         text-align: center;
         text-align: center;
     }
     }
}
/* ARCHIVE STRIP (REPLACES PAGINATION) */
.feed-archive-strip {
    margin-top: 1.25rem;
    padding: 0.9rem 1.1rem;
    background: #f7faf6;
    border: 1px solid #d2ddce;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
}
.feed-archive-strip a {
    color: #3a5228;
    text-decoration: none;
}
.feed-archive-strip a:hover {
    text-decoration: underline;
}
}

Latest revision as of 04:12, 23 November 2025

/* ============================================ */
/* CURRENT EVENTS PORTAL (QUERY-DRIVEN, CLEAN)  */
/* ============================================ */

/* -------------------------------------------- */
/* WRAPPER / HEADER                              */
/* -------------------------------------------- */

.portal-events-wrapper {
    max-width: 1400px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}

.portal-events-header {
    background: linear-gradient(135deg, #f7faf6 0%, #eef4ea 100%);
    border: 1px solid #c5d2c0;
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.25rem;
}

.portal-events-nav {
    font-size: 0.85rem;
    color: #4b5f3c;
}

.portal-events-nav a {
    color: #324625;
    text-decoration: none;
}

.portal-events-nav a:hover { text-decoration: underline; }


/* -------------------------------------------- */
/* LAYOUT GRID (FEED + SIDEBAR)                 */
/* -------------------------------------------- */

.portal-events-grid {
    display: grid;
    grid-template-columns: 60% 38%;
    gap: 2%;
    align-items: start;
}

.portal-events-feed {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.portal-events-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 1rem;
}

/* -------------------------------------------- */
/* RESPONSIVE                                   */
/* -------------------------------------------- */

/* only collapse to 1 column on actual tablets/phones */
@media (max-width: 850px) {
    .portal-events-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .portal-events-sidebar {
        position: static;
        top: auto;
    }
    .guidelines-grid {
        grid-template-columns: 1fr;
    }
}

/* -------------------------------------------- */
/* CALENDAR (SIDEBAR MINI)                      */
/* -------------------------------------------- */

.portal-events-calendar {
    background: #ffffff;
    border: 1px solid #d2ddce;
    border-radius: 8px;
    padding: 0.45rem 0.55rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

/* Month nav */
.calendar-month-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid #e8ede5;
}

.calendar-current-month {
    font-size: 0.75rem;
    font-weight: 700;
    color: #26351a;
    white-space: nowrap;
}

.calendar-nav-link {
    display: inline-block;
    background: #f0f5ed;
    border: 1px solid #d2ddce;
    border-radius: 4px;
    padding: 0.15rem 0.35rem;
    font-size: 0.68rem;
    color: #3a4a2e;
    font-weight: 600;
    text-decoration: none;
    line-height: 1;
    transition: background 0.2s;
    white-space: nowrap;
}

.calendar-nav-link a {
    color: inherit;
    text-decoration: none;
}

.calendar-nav-link:hover { background: #e3ebe0; }
.calendar-nav-disabled { opacity: 0.45; }

/* Week headers */
.calendar-week-headers {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.18rem;
    margin-bottom: 0.18rem;
}

.calendar-weekday {
    text-align: center;
    font-size: 0.52rem;
    font-weight: 700;
    color: #5a6650;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.05rem 0;
}

/* Month grid */
.calendar-month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.18rem;
    margin-bottom: 0.35rem;
    grid-auto-rows: 22px;
}

.calendar-day {
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafbf9;
    border: 1px solid #e8ede5;
    border-radius: 3px;
    font-size: 0.6rem;
    font-weight: 600;
    color: #7a8472;
    transition: all 0.15s;
    position: relative;
    padding: 0;
}

.calendar-day a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    text-decoration: none;
}

.calendar-day.empty {
    background: transparent;
    border: none;
}

.calendar-day.has-events {
    background: #5b7a45;
    border-color: #4a6337;
}

.calendar-day.has-events a {
    color: #ffffff;
    font-weight: 700;
}

.calendar-day.has-events:hover {
    background: #4a6337;
    transform: translateY(-1px);
    box-shadow: 0 1px 2px rgba(0,0,0,0.12);
}

.calendar-day.today {
    border: 2px solid #d4842f;
    background: #fef9f3;
}

.calendar-day.today a { color: #d4842f; }

.calendar-day.today.has-events {
    background: #5b7a45;
    border: 2px solid #d4842f;
    box-shadow: 0 0 0 2px rgba(212,132,47,0.12);
}

.calendar-day.today.has-events a { color: #ffffff; }

.calendar-day:not(.has-events):not(.empty):hover {
    background: #f0f5ed;
    border-color: #d2ddce;
}

.calendar-day.has-events::after {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 2px;
    background: rgba(255,255,255,0.85);
    border-radius: 50%;
}

.calendar-archive-link {
    text-align: center;
    font-size: 0.65rem;
    padding-top: 0.3rem;
    border-top: 1px solid #e8ede5;
    line-height: 1.3;
}

.calendar-archive-link a {
    color: #3a5228;
    text-decoration: none;
    padding: 0.1rem 0.2rem;
    border-radius: 3px;
    transition: background 0.2s;
}

.calendar-archive-link a:hover {
    background: #f0f5ed;
    text-decoration: underline;
}


/* -------------------------------------------- */
/* SIDEBAR CARDS                                */
/* -------------------------------------------- */

.sidebar-card {
    background: #ffffff;
    border: 1px solid #d2ddce;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    padding: 0.85rem 1.1rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-icon { font-size: 1.1rem; }

/* Card type headers */
.sidebar-ongoing .sidebar-title {
    background: linear-gradient(135deg, #6a5b86 0%, #54486b 100%);
}
.sidebar-enforcement .sidebar-title {
    background: linear-gradient(135deg, #c75b3c 0%, #a84a2f 100%);
}
.sidebar-fieldwork .sidebar-title {
    background: linear-gradient(135deg, #4a7c9d 0%, #3a6379 100%);
}
.sidebar-policy .sidebar-title {
    background: linear-gradient(135deg, #5b7a45 0%, #4a6337 100%);
}

.sidebar-list {
    padding: 0.7rem 1.1rem 0.9rem;
}

.sidebar-item {
    padding: 0.65rem 0;
    border-bottom: 1px solid #e8ede5;
}

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

.sidebar-date {
    font-size: 0.75rem;
    color: #5a6650;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.sidebar-region {
    font-size: 0.85rem;
    color: #26351a;
    font-weight: 700;
    margin-bottom: 0.1rem;
}

.sidebar-status {
    font-size: 0.75rem;
    color: #5a6650;
    margin-bottom: 0.3rem;
}

.sidebar-link {
    font-size: 0.85rem;
    color: #3a4a2e;
    line-height: 1.4;
}

.sidebar-link a {
    color: #3a5228;
    text-decoration: none;
}

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

.sidebar-footer {
    padding: 0.65rem 1.1rem;
    background: #f7faf6;
    border-top: 1px solid #e8ede5;
    font-size: 0.85rem;
}

.sidebar-footer a {
    color: #3a5228;
    text-decoration: none;
    font-weight: 600;
}

.sidebar-footer a:hover { text-decoration: underline; }


/* -------------------------------------------- */
/* NEWS CARD (FEED ITEM)                        */
/* -------------------------------------------- */

.news-card {
    background: #ffffff;
    border: 1px solid #e1e6df;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

.news-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #d2ddce;
}

.news-card:hover {
    border-color: #c5d2c0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.07);
    transform: translateY(-1px);
}

/* Category accents */
.news-card--policy::before { background: #5b7a45; }
.news-card--enforcement::before { background: #c75b3c; }
.news-card--fieldwork::before { background: #4a7c9d; }
.news-card--research::before { background: #7a6c3a; }
.news-card--community::before { background: #6a5b86; }

/* Header */
.news-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #fafbf9;
    border-bottom: 1px solid #eff3ed;
}

.news-card__date {
    font-size: 0.75rem;
    font-weight: 700;
    color: #55624d;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.news-card__category-badge {
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    color: #ffffff;
    line-height: 1;
}

.news-card__category-badge--policy { background: #5b7a45; }
.news-card__category-badge--enforcement { background: #c75b3c; }
.news-card__category-badge--fieldwork { background: #4a7c9d; }
.news-card__category-badge--research { background: #7a6c3a; }
.news-card__category-badge--community { background: #6a5b86; }

.news-card--policy .news-card__category-badge{ background:#5b7a45; }
.news-card--enforcement .news-card__category-badge{ background:#c75b3c; }
.news-card--fieldwork .news-card__category-badge{ background:#4a7c9d; }
.news-card--research .news-card__category-badge{ background:#7a6c3a; }
.news-card--community .news-card__category-badge{ background:#6a5b86; }
.news-card__category-badge{ color:#fff; }

/* Region */
.news-card__region {
    padding: 0.45rem 1rem 0;
    font-size: 0.78rem;
    color: #7a8472;
    font-weight: 500;
    font-style: italic;
}

/* Title */
.news-card__title {
    padding: 0.55rem 1rem 0.2rem;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.45;
    color: #1a2612;
    margin: 0;
}

.news-card__title a {
    color: inherit;
    text-decoration: none;
}

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

/* Summary */
.news-card__summary {
    padding: 0.2rem 1rem 0.85rem;
    font-size: 0.92rem;
    line-height: 1.6;
    color: #34402d;
}

/* Footer */
.news-card__footer {
    padding: 0.6rem 1rem 0.7rem;
    border-top: 1px solid #eff3ed;
    background: #fafbf9;
}

.news-card__links {
    font-size: 0.8rem;
    color: #5a6650;
}

.news-card__links a {
    color: #2f4a22;
    text-decoration: none;
    font-weight: 700;
}

.news-card__links a:hover {
    color: #5b7a45;
    text-decoration: underline;
}


/* -------------------------------------------- */
/* STORY EVENT PAGES                            */
/* -------------------------------------------- */

.story-card {
    background: #ffffff;
    border: 1px solid #d2ddce;
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.story-header { margin-bottom: 0.8rem; }

.story-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #26351a;
}

.story-subtitle {
    font-size: 0.95rem;
    color: #5a6650;
    margin-top: 0.2rem;
}

.story-body {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #3a4a2e;
    margin-bottom: 1rem;
}

.story-timeline-item {
    border-left: 3px solid #d2ddce;
    background: #fafbf9;
    padding: 0.7rem 0.9rem;
    border-radius: 6px;
    margin-bottom: 0.7rem;
}

.story-timeline-date {
    font-size: 0.8rem;
    font-weight: 700;
    color: #26351a;
    margin-bottom: 0.25rem;
}

.story-timeline-meta {
    font-size: 0.78rem;
    color: #5a6650;
    margin-bottom: 0.3rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.story-timeline-tag {
    background: #eef4ea;
    border: 1px solid #d2ddce;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-weight: 600;
}

.story-timeline-text {
    font-size: 0.9rem;
    color: #3a4a2e;
    line-height: 1.55;
}


/* -------------------------------------------- */
/* CONTRIBUTING / GUIDELINES BOX                */
/* -------------------------------------------- */

.portal-events-guidelines {
    background: #f7faf6;
    border: 1px dashed #c5d2c0;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin-top: 2rem;
}

.portal-events-guidelines h3 {
    font-size: 1.1rem;
    color: #26351a;
    margin: 0 0 1rem;
}

.guidelines-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.guideline-item {
    font-size: 0.85rem;
    color: #3a4a2e;
    line-height: 1.5;
}

.guideline-item strong { color: #26351a; }

.guidelines-footer-link {
    margin-top: 0.9rem;
    font-size: 0.9rem;
    font-weight: 700;
}

.guidelines-footer-link a {
    color: #3a5228;
    text-decoration: none;
}

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


/* -------------------------------------------- */
/* RESPONSIVE                                   */
/* -------------------------------------------- */

@media (max-width: 1100px) {
    .portal-events-grid {
        grid-template-columns: 1fr;
    }
    .portal-events-sidebar {
        position: static;
        top: auto;
    }
    .guidelines-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .portal-events-wrapper { padding: 0 0.6rem; }

    .portal-events-header {
        padding: 0.85rem 1rem;
        margin-bottom: 0.9rem;
        border-radius: 10px;
    }

    .portal-events-nav {
        font-size: 0.8rem;
        line-height: 1.45;
    }

    .news-card__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
        padding: 0.7rem 0.9rem;
    }
    .news-card__region {
        padding: 0.4rem 0.9rem 0;
        font-size: 0.74rem;
    }
    .news-card__title {
        padding: 0.5rem 0.9rem 0.2rem;
        font-size: 0.98rem;
    }
    .news-card__summary {
        padding: 0.2rem 0.9rem 0.75rem;
        font-size: 0.88rem;
    }
    .news-card__footer {
        padding: 0.55rem 0.9rem 0.65rem;
    }

    .sidebar-title {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
    }
    .sidebar-list { padding: 0.6rem 1rem 0.85rem; }
    .sidebar-item { padding: 0.6rem 0; }
    .sidebar-link { font-size: 0.83rem; }
    .sidebar-footer {
        padding: 0.6rem 1rem;
        font-size: 0.82rem;
    }
}

@media (max-width: 600px) {
    .calendar-week-headers,
    .calendar-month-grid { gap: 0.16rem; }

    .calendar-month-grid { grid-auto-rows: 20px; }
    .calendar-day { height: 20px; font-size: 0.58rem; }
    .calendar-weekday { font-size: 0.5rem; }
    .calendar-archive-link { font-size: 0.63rem; }
}

@media (max-width: 480px) {
    .portal-events-wrapper { padding: 0 0.45rem; }

    .calendar-month-nav {
        flex-wrap: wrap;
        row-gap: 0.3rem;
    }
    .calendar-nav-link,
    .calendar-current-month {
        width: 100%;
        text-align: center;
    }
}