/* ==========================================================
   QVSTAMPS NUMERAL POSTMARK LOOKUP
   ========================================================== */

*{
    box-sizing:border-box;
}

html{
    min-height:100%;
    scroll-behavior:smooth;
}

body{
    min-height:100vh;

    margin:0;
    padding:0;

    background:
        linear-gradient(
            rgba(25,42,40,.36),
            rgba(25,42,40,.36)
        ),
        url("/images/DISPLAY/ask_background.png")
        center top / cover fixed;

    background-color:#263f3d;

    color:#24221E;

    font-family:Georgia, "Times New Roman", serif;
}

.pmk-page{
    width:100%;

    padding:1px 0 55px;
}

/* ==========================================================
   INTRODUCTION
   ========================================================== */

.pmk-introduction{
    position:relative;

    width:min(900px, calc(100% - 40px));

    margin:0 auto 22px;
    padding:17px 30px 16px;

    background:
        linear-gradient(
            145deg,
            rgba(255,252,244,0.96),
            rgba(241,226,197,0.95)
        );

    border:1px solid rgba(169,125,30,0.76);
    border-radius:11px;

    box-shadow:
        0 7px 19px rgba(43,31,14,0.14),
        inset 0 1px 0 rgba(255,255,255,0.70);

    text-align:center;
}

.pmk-introduction::before{
    content:"";

    position:absolute;
    inset:6px;

    border:1px solid rgba(169,125,30,0.22);
    border-radius:7px;

    pointer-events:none;
}

.pmk-introduction__diamond{
    position:absolute;
    top:-10px;
    left:50%;

    padding:0 11px;

    transform:translateX(-50%);

    background:#F4E7CC;
    color:#A97D1E;

    font-size:14px;
    line-height:20px;
}

.pmk-introduction h2{
    position:relative;
    z-index:1;

    margin:0 0 8px;

    color:#0B2038;

    font-size:clamp(21px, 2vw, 27px);
    line-height:1.15;
    font-weight:400;
}

.pmk-introduction p{
    position:relative;
    z-index:1;

    max-width:820px;

    margin:0 auto 7px;

    font-size:15px;
    line-height:1.4;
}

.pmk-introduction p:last-child{
    margin-bottom:0;
}

.pmk-introduction__instruction{
    color:#0B2038;
    font-size:15px;
    font-weight:700;
}

/* ==========================================================
   MAIN TOOL LAYOUT
   ========================================================== */

.pmk-tool-layout{
    width:min(1240px, calc(100% - 40px));

    margin:0 auto 28px;

    display:grid;
    grid-template-columns:
        minmax(0, 1.5fr)
        minmax(380px, .82fr);

    gap:26px;

    align-items:start;
}

.pmk-tool-layout .pmk-country-section,
.pmk-tool-layout .pmk-search-section,
.pmk-tool-layout .pmk-results{
    width:100%;

    margin-left:0;
    margin-right:0;
}

.pmk-tool-right{
    min-width:0;

    display:flex;
    flex-direction:column;

    gap:17px;
}

/* ==========================================================
   SECTION HEADINGS
   ========================================================== */

.pmk-country-section > h2,
.pmk-search-section > h2,
.pmk-results > h2,
.tool-links-section > h2{
    margin:0 0 13px;

    color:#0B2038;

    font-size:clamp(22px, 2vw, 28px);
    line-height:1.2;
    font-weight:400;

    text-align:center;
}

/* ==========================================================
   COUNTRY CARDS
   ========================================================== */

.pmk-country-grid{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));

    gap:17px;

    margin-bottom:0;
}

.pmk-country-card{
    position:relative;

    display:flex;
    flex-direction:column;
    align-items:center;

    min-width:0;
    padding:10px 10px 14px;

    background:
        linear-gradient(
            145deg,
            #FFFDF8,
            #EEE2CB
        );

    color:#24221E;

    border:2px solid rgba(169,125,30,0.68);
    border-radius:13px;

    box-shadow:
        0 7px 18px rgba(40,28,10,0.18),
        inset 0 1px 0 rgba(255,255,255,0.82);

    text-align:center;
    text-decoration:none;

    transition:
        transform .22s ease,
        border-color .22s ease,
        box-shadow .22s ease;
}

.pmk-country-card::before{
    content:"";

    position:absolute;
    inset:5px;

    border:1px solid rgba(181,138,43,0.25);
    border-radius:8px;

    pointer-events:none;
}

.pmk-country-card:hover{
    transform:translateY(-4px);

    border-color:#A97D1E;

    box-shadow:
        0 13px 26px rgba(40,28,10,0.27),
        0 0 0 2px rgba(181,138,43,0.18);
}

.pmk-country-card:focus-visible{
    outline:4px solid #A97D1E;
    outline-offset:4px;
}

.pmk-country-card.active{
    transform:translateY(-4px);

    background:
        linear-gradient(
            145deg,
            #F9F8EF,
            #DCE8E1
        );

    border:3px solid #173F3C;

    box-shadow:
        0 0 0 4px rgba(23,63,60,0.17),
        0 13px 28px rgba(40,28,10,0.24);
}

.pmk-country-card__image{
    position:relative;
    z-index:1;

    width:100%;
    height:168px;

    display:flex;
    align-items:center;
    justify-content:center;

    margin-bottom:11px;
    padding:7px;

    background:rgba(255,255,255,0.58);

    border:1px solid rgba(169,125,30,0.28);
    border-radius:8px;
}

.pmk-country-card img{
    width:100%;
    height:100%;

    display:block;

    object-fit:contain;
}

.pmk-country-title,
.pmk-country-type,
.pmk-country-selected,
.pmk-country-select{
    position:relative;
    z-index:1;
}

.pmk-country-title{
    display:block;

    color:#0B2038;

    font-size:20px;
    line-height:1.2;
    font-weight:700;
}

.pmk-country-type{
    display:block;

    margin-top:5px;

    color:#5D5549;

    font-size:14px;
    line-height:1.25;
    font-style:italic;
}

.pmk-country-selected,
.pmk-country-select{
    display:inline-block;

    margin-top:10px;
    padding:6px 11px;

    border-radius:999px;

    font-family:Arial, Helvetica, sans-serif;
    font-size:12px;
    line-height:1;
    font-weight:700;
}

.pmk-country-select{
    background:#EFE3C8;
    color:#604A19;

    border:1px solid rgba(169,125,30,0.52);
}

.pmk-country-selected{
    background:#173F3C;
    color:#FFF8E8;

    border:1px solid #173F3C;
}

/* ==========================================================
   SEARCH
   ========================================================== */

.pmk-search-section{
    scroll-margin-top:18px;

    margin-bottom:0;
}

.pmk-search-box{
    position:relative;

    width:100%;

    margin:0 auto;
    padding:18px 21px 20px;

    background:
        linear-gradient(
            145deg,
            rgba(255,252,244,0.98),
            rgba(239,225,197,0.98)
        );

    border:2px solid #A97D1E;
    border-radius:14px;

    box-shadow:
        0 8px 21px rgba(40,28,10,0.20),
        inset 0 1px 0 rgba(255,255,255,0.8);

    text-align:center;
}

.pmk-search-box__selected{
    margin-bottom:13px;
    padding-bottom:11px;

    color:#4D4539;

    border-bottom:1px solid rgba(169,125,30,0.38);

    font-size:14px;
    line-height:1.35;
}

.pmk-search-box__selected strong{
    color:#0B2038;
}

.pmk-search-box__selected span{
    display:block;

    margin-top:2px;

    font-size:13px;
    font-style:italic;
}

.pmk-search-form label{
    display:block;

    margin-bottom:4px;

    color:#0B2038;

    font-size:19px;
    font-weight:700;
}

.pmk-search-help{
    margin:0 0 12px;

    color:#5A5145;

    font-size:13px;
    line-height:1.35;
}

.pmk-search-row{
    display:flex;
    align-items:stretch;
    justify-content:center;

    gap:9px;
}

.pmk-search-row input{
    width:150px;
    min-width:0;

    padding:10px 12px;

    background:#FFFDF8;
    color:#17202A;

    border:2px solid #A97D1E;
    border-radius:8px;

    font-family:Arial, Helvetica, sans-serif;
    font-size:18px;
    font-weight:700;

    text-align:center;
}

.pmk-search-row input:focus{
    outline:3px solid rgba(169,125,30,0.27);
    outline-offset:2px;
}

.pmk-search-row button{
    padding:10px 18px;

    background:
        linear-gradient(
            #214E4A,
            #123532
        );

    color:#FFF8E8;

    border:1px solid #0B2927;
    border-radius:8px;

    font-family:Arial, Helvetica, sans-serif;
    font-size:15px;
    font-weight:700;

    cursor:pointer;

    box-shadow:0 4px 10px rgba(0,0,0,0.18);

    transition:
        transform .18s ease,
        filter .18s ease,
        box-shadow .18s ease;
}

.pmk-search-row button:hover{
    transform:translateY(-2px);
    filter:brightness(1.08);

    box-shadow:0 7px 14px rgba(0,0,0,0.24);
}

.pmk-search-row button:focus-visible{
    outline:3px solid #A97D1E;
    outline-offset:3px;
}

.pmk-awaiting-selection{
    width:100%;

    margin:0 auto;
    padding:18px 20px;

    background:rgba(255,250,238,0.91);

    color:#4B4236;

    border:1px solid rgba(169,125,30,0.65);
    border-radius:12px;

    box-shadow:0 6px 17px rgba(40,28,10,0.13);

    font-size:15px;
    line-height:1.4;

    text-align:center;
}

.pmk-awaiting-selection span{
    display:block;

    margin-bottom:4px;

    color:#A97D1E;

    font-size:25px;
    font-weight:700;
}

/* ==========================================================
   ERROR
   ========================================================== */

.pmk-message{
    width:100%;

    margin:0;
    padding:14px 17px;

    border-radius:10px;

    font-size:15px;
    line-height:1.4;

    text-align:center;
}

.pmk-message--error{
    background:#FFF0ED;
    color:#6A2222;

    border:2px solid #A95353;

    box-shadow:0 6px 16px rgba(80,20,20,0.12);
}

/* ==========================================================
   RESULTS
   ========================================================== */

.pmk-results{
    margin-top:0;
    margin-bottom:0;
}

.pmk-results-summary{
    margin:-4px auto 11px;

    color:#4D4539;

    font-size:14px;
    line-height:1.4;

    text-align:center;
}

.pmk-results-list{
    width:100%;

    margin:0 auto;

    display:grid;
    gap:11px;
}

.pmk-result-card{
    position:relative;

    display:flex;
    align-items:center;

    gap:15px;

    padding:13px 16px;

    background:
        linear-gradient(
            145deg,
            #FFFDF8,
            #EEE2CB
        );

    border:1px solid rgba(169,125,30,0.75);
    border-radius:12px;

    box-shadow:
        0 6px 16px rgba(40,28,10,0.17),
        inset 0 1px 0 rgba(255,255,255,0.75);
}

.pmk-result-number{
    flex:0 0 65px;

    display:flex;
    align-items:center;
    justify-content:center;

    width:65px;
    height:65px;

    background:#173F3C;
    color:#FFF8E8;

    border:3px double #D1AE57;
    border-radius:50%;

    font-family:Arial, Helvetica, sans-serif;
    font-size:20px;
    font-weight:700;

    box-shadow:
        inset 0 0 0 3px rgba(255,255,255,0.08),
        0 5px 13px rgba(0,0,0,0.20);
}

.pmk-result-details{
    min-width:0;

    flex:1 1 auto;
}

.pmk-result-details h3{
    margin:0 0 4px;

    color:#0B2038;

    font-size:22px;
    line-height:1.15;
    font-weight:400;
}

.pmk-result-details p{
    margin:0 0 5px;

    color:#40392F;

    font-size:15px;
    line-height:1.35;
}

.pmk-result-series{
    display:block;

    color:#696054;

    font-size:12px;
    line-height:1.3;
    font-style:italic;
}

.pmk-no-result{
    width:100%;

    margin:0 auto;
    padding:19px 22px;

    background:
        linear-gradient(
            145deg,
            #FFFDF8,
            #EEE2CB
        );

    border:1px solid rgba(169,125,30,0.75);
    border-radius:13px;

    box-shadow:0 7px 19px rgba(40,28,10,0.17);

    text-align:center;
}

.pmk-no-result__symbol{
    width:52px;
    height:52px;

    display:flex;
    align-items:center;
    justify-content:center;

    margin:0 auto 10px;

    background:#173F3C;
    color:#FFF8E8;

    border:2px solid #D1AE57;
    border-radius:50%;

    font-size:26px;
    font-weight:700;
}

.pmk-no-result h3{
    margin:0 0 8px;

    color:#0B2038;

    font-size:21px;
    font-weight:400;
}

.pmk-no-result p{
    margin:6px 0;

    font-size:14px;
    line-height:1.4;
}

/* ==========================================================
   NAVIGATION
   ========================================================== */

.pmk-navigation{
    width:min(1120px, calc(100% - 40px));

    margin:27px auto;

    text-align:center;
}

.pmk-back-link{
    display:inline-flex;
    align-items:center;

    gap:9px;

    padding:10px 17px;

    background:
        linear-gradient(
            #FFF9EA,
            #E8D5AE
        );

    color:#0B2038;

    border:1px solid #A97D1E;
    border-radius:8px;

    font-family:Arial, Helvetica, sans-serif;
    font-size:14px;
    font-weight:700;

    text-decoration:none;

    box-shadow:0 5px 13px rgba(40,28,10,0.17);

    transition:
        transform .18s ease,
        filter .18s ease;
}

.pmk-back-link:hover{
    transform:translateY(-2px);
    filter:brightness(1.05);
}

.pmk-back-link span{
    font-size:19px;
    line-height:1;
}



/* ==========================================================
   MEDIUM DESKTOP / SMALL LAPTOP
   ========================================================== */

@media (max-width:1100px){

    .pmk-tool-layout{
        width:min(1120px, calc(100% - 32px));

        grid-template-columns:
            minmax(0, 1.35fr)
            minmax(340px, .9fr);

        gap:20px;
    }

    .pmk-country-card__image{
        height:150px;
    }

    .pmk-country-title{
        font-size:18px;
    }
}

/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width:900px){

    .pmk-tool-layout{
        width:min(1120px, calc(100% - 32px));

        grid-template-columns:1fr;

        gap:24px;
    }

    .pmk-tool-right{
        gap:21px;
    }

    .pmk-country-grid{
        gap:17px;
    }

    .pmk-country-card__image{
        height:170px;
    }

    .pmk-search-box{
        width:min(650px, 100%);

        margin-left:auto;
        margin-right:auto;
    }

    .pmk-results{
        width:min(700px, 100%) !important;

        margin-left:auto !important;
        margin-right:auto !important;
    }
}

/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width:700px){

    body{
        background-attachment:scroll;
    }

    .pmk-page{
        padding-bottom:35px;
    }

    .pmk-introduction{
        width:calc(100% - 22px);

        margin-bottom:21px;
        padding:20px 16px 18px;
    }

    .pmk-introduction h2{
        font-size:21px;
    }

    .pmk-introduction p{
        font-size:14px;
        line-height:1.45;
    }

    .pmk-tool-layout{
        width:calc(100% - 22px);

        gap:22px;
    }

    .pmk-country-grid{
        grid-template-columns:1fr;

        gap:17px;
    }

    .pmk-country-card{
        padding:10px 10px 14px;
    }

    .pmk-country-card__image{
        height:auto;
        max-height:240px;
    }

    .pmk-country-card img{
        max-height:220px;
    }

    .pmk-country-title{
        font-size:20px;
    }

    .pmk-search-box{
        padding:20px 15px 21px;
    }

    .pmk-search-row{
        flex-direction:column;
        align-items:stretch;
    }

    .pmk-search-row input,
    .pmk-search-row button{
        width:100%;
    }

    .pmk-result-card{
        flex-direction:column;

        padding:18px;

        text-align:center;
    }

    .pmk-result-details h3{
        font-size:22px;
    }

    .pmk-navigation,
    .tool-links-section{
        width:calc(100% - 22px);
    }

    .tool-links{
        grid-template-columns:1fr;
    }
}

/* ==========================================================
   ACCESSIBILITY
   ========================================================== */

@media (prefers-reduced-motion:reduce){

    html{
        scroll-behavior:auto;
    }

    .pmk-country-card,
    .pmk-search-row button,
    .pmk-back-link,
    .tool-link-card{
        transition:none;
    }

    .pmk-country-card:hover,
    .pmk-search-row button:hover,
    .pmk-back-link:hover,
    .tool-link-card:hover{
        transform:none;
    }
}