/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

html {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

audio,
canvas,
img,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

.browsehappy {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

#main-body{
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.14), transparent 32%),
        linear-gradient(145deg, #0d5f90 0%, #0a4f79 48%, #083652 100%);
    font-family: 'Source Sans 3', 'Arial', sans-serif;
    min-height: 100vh;
}

h1{
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-size:15px;
    font-weight:500;
    padding-left:10px;
}

.aninput{
    width:100%;
    box-sizing: border-box;
    margin: 0;
    padding: 13px 14px;
    border: 1px solid rgba(8, 61, 94, 0.16);
    border-radius: 12px;
    background: #fff;
    color: #17374a;
    font-size: 16px;
}

.button{
    border: 0;
    border-radius: 999px;
    cursor: pointer;
}

.button:hover{
    opacity: 0.92;
}

.page-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 26px 0 40px;
}

.app-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 22px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 45px rgba(3, 24, 40, 0.18);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    text-decoration: none;
}

.brand-logo {
    width: 96px;
    max-width: 100%;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-copy strong {
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-size: 26px;
    font-weight: 500;
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.brand-kicker {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 52px;
    height: 52px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 999px;
    background: #fff;
}

.site-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    display: none;
    min-width: 230px;
    padding: 10px;
    border-radius: 20px;
    background: #f8fbfd;
    box-shadow: 0 22px 55px rgba(4, 25, 37, 0.28);
}

.site-menu.is-open {
    display: grid;
    gap: 6px;
}

.menu-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    color: #0d4f78;
    text-decoration: none;
    font-weight: 700;
}

.menu-link.is-active,
.menu-link:hover {
    background: #0d5f90;
    color: #fff;
}

.main-panel {
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.hero-card,
.form-card {
    border-radius: 30px;
    background: #f7fbfd;
    box-shadow: 0 25px 55px rgba(6, 31, 46, 0.16);
}

.hero-card {
    padding: 34px 28px;
    color: #10496d;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.9), rgba(234,243,249,0.96)),
        linear-gradient(135deg, #ffffff, #ddecf4);
}

.eyebrow {
    margin: 0 0 8px;
    color: #0d5f90;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
}

.hero-card h1 {
    margin: 0;
    padding: 0;
    font-size: 44px;
    line-height: 0.95;
    text-transform: uppercase;
}

.hero-copy {
    margin: 16px 0 0;
    font-size: 18px;
    line-height: 1.5;
}

.form-card {
    padding: 28px;
}

.form-grid {
    display: grid;
    gap: 18px;
}

.section-title {
    margin: 0;
    padding: 0;
    color: #0f4d72;
    font-size: 22px;
    text-transform: uppercase;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.field {
    display: grid;
    gap: 6px;
    color: #35596c;
    font-weight: 700;
}

.field span {
    font-size: 14px;
}


.field-full {
    grid-column: 1 / -1;
}

.aninput:focus {
    outline: none;
    border-color: #0d5f90;
    box-shadow: 0 0 0 4px rgba(13, 95, 144, 0.12);
}

.form-actions {
    display: flex;
    justify-content: flex-start;
}

.action-button {
    min-height: 50px;
    padding: 0 24px;
    background: linear-gradient(135deg, #0e6a9f, #083d62);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 16px 30px rgba(8, 61, 98, 0.22);
}

.secondary-button,
.tertiary-button {
    min-height: 42px;
    padding: 0 18px;
    background: rgba(13, 95, 144, 0.1);
    color: #0d5f90;
    font-size: 15px;
    font-weight: 700;
}

.tertiary-button {
    background: rgba(199, 44, 65, 0.08);
    color: #a1283b;
}

.hint-card {
    padding: 18px 20px;
    border-radius: 20px;
    background: #e9f3f8;
    color: #1c536f;
}

.hint-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
}

.hint-card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

.hint-card p + p {
    margin-top: 8px;
}

.office-sign-list {
    display: grid;
    gap: 16px;
}

.office-form-card {
    padding: 20px;
    border-radius: 24px;
    background: #eff7fb;
    border: 1px solid rgba(13, 95, 144, 0.08);
}

.office-form-head {
    margin-bottom: 14px;
}

.office-form-title {
    margin: 0;
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: #0f4d72;
    text-transform: uppercase;
}

.office-board__titles-inner .sign-h1 {
    font-size: 37px;
    font-weight: 700;
}

.office-board__titles-inner .sign-h2 {
    font-size: 14px;
    font-weight: 600;
}

.office-board__titles-inner .sign-h3 {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.03em;
}

.line-textarea {
    resize: vertical;
    min-height: 86px;
}

.line-textarea--large {
    font-size: 18px;
}

.print-body {
    margin: 0;
    background: #dce7ee;
    font-family: 'Source Sans 3', 'Arial', sans-serif;
    color: #123f60;
}

.print-toolbar {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 18px;
}

.a4-sheet {
    width: 21cm;
    height: 29.7cm;
    margin: 0 auto 24px;
    padding: 0;
    box-sizing: border-box;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    justify-content: flex-start;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(6, 30, 46, 0.18);
    page-break-after: always;
}

.a4-sheet:last-of-type {
    page-break-after: auto;
}

.office-board {
    width: 14.7cm;
    height: 7.4cm;
    flex: 0 0 7.4cm;
    box-sizing: border-box;
    overflow: hidden;
    color: #355b7b;
    position: relative;
}

.office-board:after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 14.6cm;
    height: 7.4cm;
    transform: translateX(-50%);
    border: 1px dashed #000;
    border-radius: 0;
    box-sizing: border-box;
    pointer-events: none;
}

.office-board__inner {
    position: absolute;
    top: 0.5cm;
    left: 0.5cm;
    right: 0.5cm;
    bottom: 0.5cm;
    display: grid;
    grid-template-columns: 2.8cm 1fr;
    border: 0.08cm solid #4f7595;
    border-radius: 0.28cm;
    box-sizing: border-box;
    overflow: hidden;
    background: #fff;
}

.office-board__number {
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 0.08cm solid #4f7595;
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-size: 2.7cm;
    line-height: 1;
    font-weight: 500;
    color: #4c6f8d;
}

.office-board__content {
    display: grid;
    grid-template-rows: 1.5cm 1fr;
    padding: 0;
    min-height: 0;
}

.office-board__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3cm;
}

.office-board__brand--wide {
    justify-content: center;
    align-items: center;
    width: 100%;
}

.office-board__brand img {
    width: 4.4cm;
    max-height: 1.8cm;
    object-fit: contain;
}

.office-board__titles {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.2cm;
    padding-top: 0.1cm;
    min-height: 0;
}

.office-board__titles p {
    margin: 0;
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-size: 0.72cm;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.office-board__titles--rich {
    overflow: hidden;
    min-height: 0;
}

.office-board__titles-inner {
    width: 100%;
    height: 100%;
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-weight: 500;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.16cm;
    overflow: hidden;
    min-height: 0;
}

.office-board__titles-inner p,
.office-board__titles-inner div,
.office-board__titles-inner ul,
.office-board__titles-inner ol {
    margin: 0;
}

.office-board__titles-inner .sign-h1,
.office-board__titles-inner .sign-h2,
.office-board__titles-inner .sign-h3 {
    white-space: pre-line;
}

.office-board__titles-inner .sign-h1 {
    flex: 0 1 auto;
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    max-height: 2.4em;
}

.office-board__titles-inner .sign-h2 {
    flex: 0 1 auto;
    white-space: pre-line;
}

.office-board__titles-inner .sign-h3 {
    flex: 0 1 auto;
    white-space: pre-line;
}

.office-board__titles-inner ul,
.office-board__titles-inner ol {
    list-style-position: inside;
    padding: 0;
}

@media (max-width: 900px) {
    .main-panel {
        grid-template-columns: 1fr;
    }

    .hero-card h1 {
        font-size: 36px;
    }
}

@media (max-width: 640px) {
    .page-shell {
        width: min(100% - 20px, 1120px);
        padding-top: 14px;
    }

    .app-header {
        padding: 14px;
    }

    .brand {
        gap: 10px;
    }

    .brand-logo {
        width: 62px;
    }

    .brand-copy strong {
        font-size: 18px;
    }

    .field-grid {
        grid-template-columns: 1fr;
    }

    .form-card,
    .hero-card {
        padding: 20px;
    }

    .site-menu {
        left: 0;
        right: 0;
        min-width: 0;
    }

    .section-head {
        flex-direction: column;
        align-items: stretch;
    }
}

@media print {
    @page {
        size: A4 portrait;
        margin: 0;
    }

    .no-print {
        display: none !important;
    }

    .print-body {
        background: #fff;
    }

    .a4-sheet {
        margin: 0;
        box-shadow: none;
    }

    .office-board,
    .office-board__inner,
    .office-board__number,
    .office-board__content,
    .office-board__titles,
    .office-board__titles-inner,
    .office-board__titles p,
    .office-board__titles-inner .sign-h1,
    .office-board__titles-inner .sign-h2,
    .office-board__titles-inner .sign-h3 {
        color: #355b7b !important;
    }

    .office-board__number,
    .office-board__brand img {
        color-adjust: exact;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}














/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
