/* Ants & Atlases · Build Your Own Country — a creative fill-in/draw worksheet */

@page {
    size: letter portrait;
    margin: 0.5in;
}

* { box-sizing: border-box; }

body {
    font-family: 'Outfit', system-ui, sans-serif;
    color: #1a1a1a;
    background: #ece3d4;
    margin: 0;
    padding: 0 0 60px;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

/* ---- Screen control bar -------------------------------------------- */
.page-controls {
    position: sticky;
    top: 0;
    background: #0a0c10;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 32px;
    z-index: 100;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.back-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.85;
    transition: opacity 0.2s;
}
.back-link:hover { opacity: 1; }
.ctrl-title {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #94a3b8;
}
.print-btn {
    background: #f59e0b;
    color: #1a1a1a;
    border: none;
    padding: 10px 22px;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    letter-spacing: 1.5px;
    transition: background 0.2s, transform 0.2s;
}
.print-btn:hover { background: #fbbf24; transform: translateY(-1px); }

/* ---- Worksheet sheet ----------------------------------------------- */
.worksheet {
    background: #fff;
    width: 8.5in;
    min-height: 11in;
    margin: 28px auto;
    padding: 0.5in;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media print {
    body { background: #fff; padding: 0; }
    .page-controls { display: none !important; }
    .worksheet {
        width: 100%;
        min-height: 0;
        margin: 0;
        padding: 0;
        box-shadow: none;
        gap: 10px;
    }
}

/* ---- Header --------------------------------------------------------- */
.ws-tag {
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #888;
    text-align: center;
    margin-bottom: 4px;
}
.ws-header h1 {
    font-family: 'Patrick Hand', cursive;
    font-size: 2.6rem;
    font-weight: 400;
    text-align: center;
    margin: 0 0 2px;
    letter-spacing: 1.5px;
}
.ws-sub {
    text-align: center;
    font-size: 1rem;
    color: #555;
    margin: 0;
    font-family: 'Patrick Hand', cursive;
}

/* ---- Shared label + line styles ------------------------------------ */
.fact-label {
    display: block;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 4px;
}
.fact-line {
    display: block;
    border-bottom: 2px solid #1a1a1a;
    height: 1.5em;
}
.fact-line.big { height: 1.9em; }

/* ---- Country name banner ------------------------------------------- */
.name-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 3px solid #1a1a1a;
    border-radius: 14px;
    padding: 12px 18px;
    background: #fffbf2;
}
.banner-icon { font-size: 2.4rem; line-height: 1; flex-shrink: 0; }
.banner-fill { flex: 1; }
.banner-label {
    font-family: 'Patrick Hand', cursive;
    font-size: 1.1rem;
    color: #555;
}
.banner-line {
    display: block;
    border-bottom: 2.5px solid #1a1a1a;
    height: 2em;
    margin-top: 2px;
}

/* ---- Draw rows ------------------------------------------------------ */
.draw-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.draw-box {
    border: 3px solid #1a1a1a;
    border-radius: 14px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
}
.draw-tag {
    font-family: 'Patrick Hand', cursive;
    font-size: 1.05rem;
    font-weight: 400;
    margin-bottom: 6px;
}
.draw-hint { font-size: 0.8rem; color: #888; }
.draw-area {
    flex: 1;
    min-height: 2in;
    border: 2px dashed #ccc;
    border-radius: 10px;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 22px, #f4f4f4 22px, #f4f4f4 23px);
}
.draw-box.short .draw-area { min-height: 1.4in; }
.draw-namer {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 8px;
}
.draw-namer .fact-label { margin-bottom: 0; flex-shrink: 0; }
.draw-namer .fact-line { flex: 1; }

/* ---- Quick facts row ------------------------------------------------ */
.facts-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    border: 2px dashed #1a1a1a;
    border-radius: 12px;
    padding: 12px 16px;
    background: #fffbf2;
}

/* ---- Language + climate -------------------------------------------- */
.lang-climate {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 18px;
    align-items: start;
}
.climate-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.climate-chip {
    font-family: 'Patrick Hand', cursive;
    font-size: 0.95rem;
    border: 2px solid #1a1a1a;
    border-radius: 50px;
    padding: 3px 12px;
    background: #fff;
}

/* ---- Amazing fact --------------------------------------------------- */
.amazing {
    border: 2px dashed #1a1a1a;
    border-radius: 12px;
    padding: 12px 16px;
    background: #fffbf2;
}
.write-line {
    display: block;
    border-bottom: 2px solid #1a1a1a;
    height: 1.7em;
    margin-top: 8px;
}

/* ---- Footer --------------------------------------------------------- */
.ws-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #aaa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ws-meta {
    display: flex;
    gap: 32px;
    font-family: 'Patrick Hand', cursive;
    font-size: 1.05rem;
}
.meta-line {
    display: inline-block;
    border-bottom: 2px solid #1a1a1a;
    width: 150px;
    height: 1.4em;
    margin-left: 4px;
    vertical-align: bottom;
}
.ws-credit {
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #888;
}
