|
|
| (14 intermediate revisions by the same user not shown) |
| Line 1: |
Line 1: |
| /* ========================================= | | /* ============================================ */ |
| Main Page — TemplateStyles-safe CSS
| | /* MAIN PAGE HEADER */ |
| (kept single-source, no external splits)
| | /* ============================================ */ |
| ========================================= */
| |
|
| |
|
| /* ---------- Header ---------- */
| | .main-header-logo { |
| .mw-parser-output .main-header-logo {
| | text-align: center; |
| text-align:center;
| | padding: 3rem 1rem 2rem 1rem; |
| padding:3rem 1rem 2rem 1rem;
| | margin-bottom: 2rem; |
| margin-bottom:2rem;
| | background-color: #ffffff; |
| background:#fff;
| |
| } | | } |
| .mw-parser-output .logo-container { text-align:center; margin-bottom:1.25rem; }
| |
| .mw-parser-output .logo-container img {
| |
| max-width:150px; height:auto; display:block; margin:0 auto;
| |
| }
| |
| .mw-parser-output .header-text { max-width:800px; margin:0 auto; text-align:center; }
| |
|
| |
|
| .mw-parser-output .site-title { | | .logo-container { |
| font-family:Georgia,"Times New Roman",serif;
| | text-align: center; |
| font-size:4rem; /* slightly reduced for balance */
| | margin-bottom: 1.5rem; |
| font-weight:400;
| |
| letter-spacing:-0.02em;
| |
| color:#2d5016;
| |
| margin:0.75rem 0 1.25rem 0;
| |
| line-height:1.1;
| |
| position:relative;
| |
| }
| |
| .mw-parser-output .site-title::after {
| |
| content:"";
| |
| display:block;
| |
| width:100%;
| |
| height:2px;
| |
| background:#2d5016;
| |
| margin:1rem auto 0;
| |
| } | | } |
|
| |
|
| .mw-parser-output .main-tagline{ | | .logo-container img { |
| font-size:1.1rem; color:#2d5016; font-weight:600;
| | max-width: 150px; |
| margin:1rem 0 .5rem 0; text-transform:uppercase; letter-spacing:1px;
| | height: auto; |
| | display: block; |
| | margin: 0 auto; |
| } | | } |
| .mw-parser-output .sub-tagline{ font-size:1rem; color:#6c757d; line-height:1.55; margin-bottom:1rem; }
| |
| .mw-parser-output .call-to-action{ font-size:.95rem; color:#495057; font-style:italic; margin:0; }
| |
|
| |
| /* Helper bits */
| |
| .mw-parser-output .main-intro{ max-width:980px; margin:0 auto 18px auto; font-size:1.05rem; line-height:1.55; }
| |
| .mw-parser-output .lw-recent{ font-weight:700; }
| |
|
| |
|
| /* ---------- Home grid ---------- */
| | .header-text { |
| .mw-parser-output .home-grid{
| | max-width: 800px; |
| display:grid;
| | margin: 0 auto; |
| grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
| | text-align: center; |
| gap:10px;
| |
| margin-top:2rem;
| |
| } | | } |
|
| |
|
| /* ---------- Nav "button" cards ---------- */
| | .site-title { |
| .mw-parser-output .home-card--button{ | | font-family: 'Georgia', 'Times New Roman', serif; |
| overflow:hidden; padding:0; background:#242a31; position:relative;
| | font-size: 5rem; |
| border-radius:10px; min-height:120px; border:1px solid #1f2329;
| | font-weight: 400; |
| }
| | letter-spacing: -0.02em; |
| .mw-parser-output .home-card__background{
| | color: #2d5016; |
| position:absolute; top:0; right:0; bottom:0; left:0;
| | margin: 1rem 0 1.5rem 0; |
| background:#242a31; border-radius:10px;
| | line-height: 1.1; |
| }
| | position: relative; |
| .mw-parser-output .home-card__background img{
| |
| width:100%; height:100%; object-fit:cover; transition:transform .2s ease;
| |
| }
| |
| .mw-parser-output .home-card--button:hover .home-card__background img{ transform:scale(1.04); }
| |
| .mw-parser-output .home-card__foreground{
| |
| position:absolute; top:0; right:0; bottom:0; left:0;
| |
| display:flex; align-items:center; padding:0 14px;
| |
| color:#fff; font-weight:700; font-size:1.05rem;
| |
| text-shadow:2px 2px 4px rgba(0,0,0,.6);
| |
| background:linear-gradient(to right,rgba(0,0,0,.55),transparent);
| |
| } | | } |
|
| |
|
| /* ---------- Content cards ---------- */
| | .site-title::after { |
| .mw-parser-output .home-card{ | | content: ''; |
| position:relative; padding:16px; background:#f8f9fa; border-radius:10px;
| | display: block; |
| border:1px solid #dee2e6; box-shadow:0 1px 2px rgba(0,0,0,.04);
| | width: 100%; |
| font-size:.95rem; transition:box-shadow .2s ease; min-height:120px;
| | height: 2px; |
| | background-color: #2d5016; |
| | margin: 1rem auto 0; |
| } | | } |
| .mw-parser-output .home-card:hover{ box-shadow:0 6px 14px rgba(0,0,0,.08); }
| |
| .mw-parser-output .home-card--col2{ grid-column:span 2; }
| |
|
| |
|
| .mw-parser-output .home-card__label{ | | .main-tagline { |
| color:#6c757d; font-size:.82rem; letter-spacing:.75px; text-transform:uppercase;
| | font-size: 1.25rem; |
| font-weight:500; margin:0 0 .4rem 0;
| | color: #2d5016; |
| | font-weight: 600; |
| | margin-bottom: 0.75rem; |
| | margin-top: 1.5rem; |
| | text-transform: uppercase; |
| | letter-spacing: 1px; |
| | max-width: 100%; |
| } | | } |
| .mw-parser-output .home-card__header{
| |
| margin:0 0 .8rem 0; font-size:1.1rem; color:#2d5016; font-weight:600;
| |
| }
| |
| .mw-parser-output .home-card__header a{ color:inherit; text-decoration:none; }
| |
| .mw-parser-output .home-card__header a:hover{ color:#3d6b1f; }
| |
|
| |
|
| .mw-parser-output .home-card__body{ color:#495057; line-height:1.6; margin:0 0 .9rem 0; } | | .sub-tagline { |
| .mw-parser-output .home-card__links{
| | font-size: 1rem; |
| font-size:.82rem; color:#6c757d; border-top:1px solid #dee2e6; padding-top:.6rem;
| | color: #6c757d; |
| | line-height: 1.5; |
| | margin-bottom: 1rem; |
| } | | } |
| .mw-parser-output .home-card__links a{ color:#2d5016; text-decoration:none; font-weight:500; }
| |
| .mw-parser-output .home-card__links a:hover{ text-decoration:underline; }
| |
|
| |
|
| /* ---------- Special: research card ---------- */
| | .call-to-action { |
| .mw-parser-output #home-card-research{ | | font-size: 0.9rem; |
| background:linear-gradient(135deg,#2d5016 0%,#3d6b1f 100%);
| | color: #495057; |
| color:#fff; text-align:center; padding:24px 18px; border-radius:10px;
| | font-style: italic; |
| }
| | margin-bottom: 0; |
| .mw-parser-output #home-card-research a{
| |
| color:#fff; text-decoration:none; display:flex; flex-direction:column; align-items:center; gap:1rem;
| |
| }
| |
| .mw-parser-output #home-card-research img{ max-width:120px; height:auto; }
| |
| | |
| /* =========================================================
| |
| Conservation Panel — kept here (class names aligned)
| |
| ========================================================= */
| |
| | |
| /* Panel shell */
| |
| .mw-parser-output .lw-cons-panel{
| |
| background:#fff; border:1px solid #e6ebea; border-radius:14px;
| |
| padding:18px 18px 16px; margin:24px 0; box-shadow:0 1px 2px rgba(0,0,0,.03);
| |
| color:#26421a;
| |
| }
| |
| .mw-parser-output .lw-cons-title{
| |
| font-family:Georgia,"Times New Roman",serif;
| |
| font-size:1.6rem; line-height:1.2; margin:4px 2px 14px;
| |
| }
| |
| | |
| /* KPIs */
| |
| .mw-parser-output .lw-kpis{ display:flex; gap:12px; flex-wrap:wrap; margin:4px 0 10px; }
| |
| .mw-parser-output .lw-kpi{
| |
| flex:1 1 180px; background:#f8fbf7; border:1px solid #e6ebea;
| |
| border-radius:10px; padding:12px 14px; min-width:0;
| |
| }
| |
| .mw-parser-output .lw-kpi__num{ font-size:1.6rem; font-weight:700; line-height:1; color:#111827; }
| |
| .mw-parser-output .lw-kpi__label{ font-size:.9rem; color:#44613a; margin-top:6px; word-wrap:break-word; hyphens:auto; }
| |
| | |
| /* Proportional status bar (matches markup: .lw-seg + .lw-s-*) */
| |
| .mw-parser-output .lw-statusbar{
| |
| display:flex; height:14px; border-radius:999px; overflow:hidden;
| |
| border:1px solid #e6ebea; background:#f4f7f4; margin:8px 0;
| |
| }
| |
| .mw-parser-output .lw-seg{ height:100%; min-width:2px; } /* ensures thin segments still visible */
| |
| .mw-parser-output .lw-s-stable{ background:#2ecc71; }
| |
| .mw-parser-output .lw-s-vulnerable{ background:#f1c40f; }
| |
| .mw-parser-output .lw-s-endangered{ background:#f39c12; }
| |
| .mw-parser-output .lw-s-critical{ background:#e74c3c; }
| |
| .mw-parser-output .lw-s-extinct{ background:#9ca3af; }
| |
| | |
| /* Legend (matches markup: dot--stable, dot--vuln, dot--end, dot--crit, dot--ext) */
| |
| .mw-parser-output .lw-legend{
| |
| display:flex; flex-wrap:wrap; gap:12px 16px; list-style:none; padding:8px 2px 2px; margin:0;
| |
| }
| |
| .mw-parser-output .lw-legend__item{
| |
| display:inline-flex; align-items:center; gap:6px; font-size:.92rem; color:#35522b; min-height:26px;
| |
| }
| |
| .mw-parser-output .lw-legend .dot{
| |
| width:10px; height:10px; border-radius:50%; display:inline-block; border:1px solid rgba(0,0,0,.08);
| |
| }
| |
| .mw-parser-output .dot--stable{ background:#2ecc71; }
| |
| .mw-parser-output .dot--vuln{ background:#f1c40f; }
| |
| .mw-parser-output .dot--end{ background:#f39c12; }
| |
| .mw-parser-output .dot--crit{ background:#e74c3c; }
| |
| .mw-parser-output .dot--ext{ background:#9ca3af; }
| |
| .mw-parser-output .lw-legend .lbl{ color:#2e4631; }
| |
| .mw-parser-output .lw-legend .count{ margin-left:4px; color:#6b7280; font-variant-numeric:tabular-nums; }
| |
| | |
| /* ---------- Responsive ---------- */
| |
| @media (max-width: 720px){
| |
| .mw-parser-output .site-title{ font-size:3.2rem; }
| |
| .mw-parser-output .home-grid{ grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); }
| |
| .mw-parser-output .home-card--col2{ grid-column:auto; }
| |
| }
| |
| @media (max-width: 480px){
| |
| .mw-parser-output .site-title{ font-size:2.5rem; }
| |
| .mw-parser-output .logo-container img{ max-width:120px; }
| |
| .mw-parser-output .home-grid{ grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:8px; }
| |
| .mw-parser-output .home-card{ padding:14px; }
| |
| | |
| .mw-parser-output .lw-cons-panel{ padding:16px 14px; margin:16px 0; border-radius:12px; }
| |
| .mw-parser-output .lw-cons-title{ font-size:1.4rem; margin:2px 0 12px; }
| |
| .mw-parser-output .lw-kpis{ gap:8px; margin:2px 0 12px; }
| |
| .mw-parser-output .lw-kpi{ flex:1 1 100%; padding:10px 12px; }
| |
| .mw-parser-output .lw-kpi__num{ font-size:1.4rem; }
| |
| .mw-parser-output .lw-kpi__label{ font-size:.85rem; margin-top:4px; }
| |
| .mw-parser-output .lw-statusbar{ height:12px; margin:6px 0; }
| |
| }
| |
| @media (max-width: 360px){
| |
| .mw-parser-output .lw-cons-panel{ padding:14px 12px; margin:12px 0; }
| |
| .mw-parser-output .lw-legend{ gap:8px 12px; }
| |
| .mw-parser-output .lw-legend__item{ font-size:.86rem; }
| |
| } | | } |