/* =========================================================
   Ministry pages (ministry-*.php, staging) — prefix pm-
   Builds on css/home-test2.css for tokens, buttons, header and footer.
   ========================================================= */

.pm-sec { position: relative; padding: 110px 0; }

.pm-head { max-width: 760px; margin-bottom: 50px; }

.pm-head--split {
    max-width: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px 60px;
}

.pm-head--split .pl-muted { max-width: 420px; margin: 0; }

/* ---------- hero text shared by the hero options ---------- */
.pm-crumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 26px;
    font-size: 13px;
    color: var(--w3);
}

.pm-crumbs a { color: var(--y); text-decoration: none; font-weight: 600; }
.pm-crumbs a:hover { text-decoration: underline; }
.pm-crumbs i { font-size: 10px; }

.pm-hero__small {
    display: block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--w2);
}

.pm-hero__title {
    margin: 4px 0 20px;
    font-family: var(--display);
    font-weight: 900;
    font-size: clamp(3rem, 7.5vw, 6.6rem);
    line-height: .9;
    text-transform: uppercase;
    color: var(--y);
    text-shadow: 0 0 40px rgba(255, 198, 0, .25);
}

.pm-hero__mandate {
    margin: 0 0 16px;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.5;
}

.pm-hero__intro {
    max-width: 640px;
    margin: 0 0 34px;
    color: var(--w2);
    font-size: 1.05rem;
    line-height: 1.75;
}

.pm-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- hero: briefing podium with ministry flags ---------- */
.pm-brief-hero { position: relative; overflow: hidden; }

.pm-brief-hero {
    padding: 120px 0 90px;
    background: radial-gradient(ellipse at 50% 120%, #1a1405 0%, var(--k) 60%);
}

.pm-brief-hero__spot {
    position: absolute;
    right: 8%;
    top: -10%;
    width: 520px;
    height: 120%;
    background: linear-gradient(180deg, rgba(255, 228, 150, .22), transparent 85%);
    clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%);
    pointer-events: none;
}

.pm-brief-hero__grid { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: end; }

.pm-stage { position: relative; height: 460px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }

/* ministry flags on poles */
.pm-flag {
    position: absolute;
    bottom: 0;
    width: 6px;
    height: 400px;
    background: linear-gradient(90deg, #555, #bbb, #555);
}

.pm-flag--l { left: 4%; }
.pm-flag--r { right: 4%; }

.pm-flag i {
    position: absolute;
    top: 10px;
    width: 120px;
    height: 76px;
    background:
        linear-gradient(180deg, var(--y) 0 33%, var(--k) 33% 66%, var(--y) 66%);
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .3);
    transform-origin: 0 50%;
    animation: pm-wave 2.4s ease-in-out infinite alternate;
}

.pm-flag--l i { left: 6px; }
.pm-flag--r i { right: 6px; transform-origin: 100% 50%; }

@keyframes pm-wave {
    from { transform: skewY(4deg) scaleX(1); }
    to { transform: skewY(-4deg) scaleX(.92); }
}

.pm-mics { display: flex; gap: 10px; margin-bottom: -6px; z-index: 2; }

.pm-mics i {
    width: 8px;
    height: 70px;
    border-radius: 4px;
    background: linear-gradient(180deg, #222 0 22px, #555 22px);
}

.pm-mics i:nth-child(1) { transform: rotate(-12deg); }
.pm-mics i:nth-child(3) { transform: rotate(12deg); }

.pm-lectern {
    position: relative;
    z-index: 1;
    width: 300px;
    height: 250px;
    padding-top: 34px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 10% 100%);
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .4), rgba(255, 255, 255, .06) 30%, rgba(255, 255, 255, .06) 70%, rgba(0, 0, 0, .4)),
        linear-gradient(180deg, #6b4a26, #3d2a14 60%, #24180b);
    border-top: 12px solid var(--y);
}

.pm-lectern__seal {
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #ffe27a, var(--y) 45%, #c99600);
    color: var(--k);
    font-size: 40px;
    box-shadow: 0 0 0 5px rgba(255, 198, 0, .3), 0 0 40px rgba(255, 198, 0, .35);
}

.pm-lectern__name {
    max-width: 220px;
    font-family: var(--display);
    font-weight: 900;
    font-size: 1.2rem;
    line-height: 1.05;
    text-align: center;
    text-transform: uppercase;
    color: var(--y);
}

/* ---------- state of the nation: sourced figures ---------- */
.pm-nation {
    background:
        linear-gradient(180deg, var(--k), #0e0c07);
    border-top: 1px solid rgba(255, 198, 0, .15);
}

.pm-stats { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.pm-stats--4 { grid-template-columns: repeat(4, 1fr); }

/* each figure reads like a notice pinned in the gazette */
.pm-stat {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 30px 26px 24px;
    border-radius: 6px;
    background: #f7f1df;
    color: #1a1a1a;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .5);
}

.pm-stat::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -9px;
    width: 18px;
    height: 18px;
    margin-left: -9px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ff6b6f, var(--r) 60%, #7a0b0e);
    box-shadow: 0 3px 4px rgba(0, 0, 0, .4);
}

.pm-stat strong {
    font-family: var(--display);
    font-weight: 900;
    font-size: clamp(2.6rem, 4vw, 3.6rem);
    line-height: 1;
    color: #1a1a1a;
}

.pm-stat figcaption { margin: 12px 0 18px; font-size: 15px; line-height: 1.55; color: #3a3a3a; }

.pm-stat a {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed #c9bf9f;
    font-size: 12px;
    color: #7a6c45;
    text-decoration: none;
}

.pm-stat a:hover { color: #1a1a1a; text-decoration: underline; }

/* ---------- departments ---------- */
.pm-depts__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.pm-dept {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px 26px 24px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
    color: var(--w);
    text-decoration: none;
    transition: border-color .25s ease, transform .25s ease, background .25s ease;
}

.pm-dept::before {
    content: "";
    position: absolute;
    left: 26px;
    top: 0;
    width: 40px;
    height: 4px;
    border-radius: 0 0 4px 4px;
    background: var(--y);
}

.pm-dept:hover { color: var(--w); border-color: rgba(255, 198, 0, .5); background: rgba(255, 198, 0, .06); transform: translateY(-4px); }

.pm-dept__no { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--w3); }

.pm-dept h3 {
    margin: 8px 0 10px;
    font-family: var(--display);
    font-weight: 900;
    font-size: 1.8rem;
    line-height: 1;
    text-transform: uppercase;
}

.pm-dept p { margin: 0 0 20px; color: var(--w2); font-size: 14.5px; line-height: 1.6; }

.pm-dept__go { margin-top: auto; color: var(--y); font-weight: 600; font-size: 14px; }
.pm-dept__go i { transition: transform .2s ease; display: inline-block; }
.pm-dept:hover .pm-dept__go i { transform: translateX(4px); }

/* ---------- how it works: a bill through the house ---------- */
.pm-bill { background: #0c0b08; border-block: 1px solid var(--line); }

.pm-bill__track {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
    position: relative;
}

/* the line the bill travels along */
.pm-bill__track::before {
    content: "";
    position: absolute;
    left: 28px;
    right: 28px;
    top: 27px;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--y) 0 10px, transparent 10px 18px);
}

.pm-bill__stage { position: relative; }

.pm-bill__dot {
    position: relative;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--k);
    border: 3px solid var(--y);
    color: var(--y);
    font-family: var(--display);
    font-weight: 900;
    font-size: 1.6rem;
}

.pm-bill__stage:last-child .pm-bill__dot { background: var(--y); color: var(--k); box-shadow: 0 0 30px rgba(255, 198, 0, .5); }

.pm-bill__label {
    display: block;
    margin: 20px 0 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--y);
}

.pm-bill h3 {
    margin: 0 0 8px;
    font-family: var(--display);
    font-weight: 900;
    font-size: 1.7rem;
    line-height: 1;
    text-transform: uppercase;
}

.pm-bill p { margin: 0; color: var(--w2); font-size: 14.5px; line-height: 1.65; }

/* ---------- briefing kit + question hour ---------- */
.pm-brief__grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 60px;
    align-items: start;
}

.pm-kit {
    position: relative;
    margin-top: 30px;
    padding: 34px 32px 30px;
    border-radius: 0 12px 12px 12px;
    background:
        repeating-linear-gradient(180deg, transparent 0 39px, rgba(0, 0, 0, .06) 39px 40px),
        #fbf7ea;
    color: #1a1a1a;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .6);
}

.pm-kit__tab {
    position: absolute;
    left: 0;
    bottom: 100%;
    padding: 8px 18px;
    border-radius: 10px 10px 0 0;
    background: var(--y);
    color: var(--k);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.pm-kit h2 {
    margin: 0 0 18px;
    font-family: var(--display);
    font-weight: 900;
    font-size: 2.2rem;
    text-transform: uppercase;
}

.pm-kit ul { list-style: none; margin: 0; padding: 0; }

.pm-kit li {
    display: flex;
    gap: 12px;
    padding: 9px 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
}

.pm-kit li i { color: #b08600; font-size: 17px; }

.pm-q {
    border-top: 1px solid var(--line);
}

.pm-q:last-of-type { border-bottom: 1px solid var(--line); }

.pm-q summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    list-style: none;
}

.pm-q summary::-webkit-details-marker { display: none; }
.pm-q summary i { color: var(--y); transition: transform .25s ease; }
.pm-q[open] summary i { transform: rotate(45deg); }
.pm-q p { margin: 0 0 20px; color: var(--w2); line-height: 1.7; }

/* ---------- the rest of the cabinet ---------- */
.pm-others { padding-bottom: 60px; }

.pm-others__row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

/* brass nameplates */
.pm-plate {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 22px 14px 18px;
    border-radius: 6px;
    text-align: center;
    background: linear-gradient(180deg, #fff1a8 0%, #ffc600 35%, #c79100 70%, #ffdc5c 100%);
    color: #1d1600;
    text-decoration: none;
    box-shadow: 0 8px 0 #6e5000, 0 18px 26px rgba(0, 0, 0, .55);
    transition: transform .25s ease, box-shadow .25s ease;
}

.pm-plate:hover { color: #1d1600; transform: translateY(-4px); box-shadow: 0 12px 0 #6e5000, 0 24px 30px rgba(0, 0, 0, .55); }

.pm-plate i { font-size: 22px; }
.pm-plate small { font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }

.pm-plate strong {
    font-family: var(--display);
    font-weight: 900;
    font-size: 1.35rem;
    line-height: 1.05;
    text-transform: uppercase;
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
    .pm-stats--4 { grid-template-columns: repeat(2, 1fr); }
    .pm-others__row { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991px) {
    .pm-sec { padding: 84px 0; }
    .pm-brief-hero__grid,
    .pm-brief__grid { grid-template-columns: minmax(0, 1fr); }
    .pm-stage { height: 380px; }
    .pm-stats { grid-template-columns: minmax(0, 1fr); }
    .pm-bill__track { grid-template-columns: 1fr 1fr; }
    .pm-bill__track::before { display: none; }
}

@media (max-width: 767px) {
    .pm-brief-hero { padding: 90px 0 70px; }
    .pm-stage { height: 320px; }
    .pm-lectern { width: 230px; height: 200px; }
    .pm-flag { height: 300px; }
    .pm-flag i { width: 80px; height: 52px; }
    .pm-stats--4 { grid-template-columns: minmax(0, 1fr); }
    .pm-bill__track { grid-template-columns: minmax(0, 1fr); }
    .pm-others__row { grid-template-columns: 1fr 1fr; }
    .pm-kit { padding: 26px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .pm-flag i { animation: none; }
}
