/***************************************************************************/
/**
    The NA Cleantime Calculator (NACC)
    
    This file is the stylesheet for the NACC. It has been deliberately
    set up to apply low-specificity styling, so it can be fairly easily
    overridden.
    
    NACC is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    NACC is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this code. If not, see <http://www.gnu.org/licenses/>.
*/

/********************************************************************************************
######################################## GLOBAL STYLES ######################################
********************************************************************************************/
/** This is the overall container */
.NACC-Instance {
    width: 100%;
}

/** This is the overall container */
.NACC-Instance .NACC-Results img {
    border: none;
    padding: 0;
}

/** This is a generic "breaker" element that is designed to break floats. */
.NACC-Instance .breaker {
    float: none;
    clear: both;
}

/** This is the header, at the top. */
.NACC-Instance .NACC-Header {
    padding: 0.25em;
    text-align: center;
}

/** This is the label for the popups. */
.NACC-Instance .NACC-Prompt-Label {
    display: block;
}

.NACC-Instance .NACC-Legend-div {
    display: table;
    margin: auto;
}

.NACC-Instance .NACC-Legend {
    text-align: center;
    margin: auto;
}

/** These apply to the selects and the Calculate button. */
.NACC-Instance .NACC-Legend-div select,
.NACC-Instance .NACC-Legend-div input {
    display: block;
    float:left;
    margin-left: 0.125em;
}

/** Date input and Calculate button align inline so vertical-align works. */
.NACC-Instance .NACC-Legend-div .NACC-Popups {
    text-align: center;
}
.NACC-Instance .NACC-Legend-div .NACC-Date,
.NACC-Instance .NACC-Legend-div .NACC-Calculate-Button {
    display: inline-block;
    float: none;
    vertical-align: middle;
    margin: 0.25em 0.125em;
    box-sizing: border-box;
}

/** Mobile-friendly tap targets and accessibility. */
.NACC-Instance .NACC-Date {
    /** 16px prevents iOS Safari from auto-zooming on focus. */
    font-size: 16px;
    min-height: 44px;
    padding: 0.4em 0.6em;
    background: #fff;
    color: #222;
    border: 1px solid currentColor;
    border-radius: 0.3em;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}
.NACC-Instance .NACC-Date::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.7;
    margin-left: 0.4em;
}
.NACC-Instance .NACC-Date::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}
.NACC-Instance .NACC-Calculate-Button,
.NACC-Instance .NACC-Change-Layout-Button {
    min-height: 44px;
    padding: 0.5em 1em;
}
.NACC-Instance .NACC-Show-Special-Tags-Checkbox-Label {
    cursor: pointer;
    padding: 0.5em 0.25em;
    line-height: 1.2;
}
.NACC-Instance .NACC-Show-Special-Tags-Checkbox {
    cursor: pointer;
    width: 1.1em;
    height: 1.1em;
    margin-top: 0.6em;
}
.NACC-Instance :focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
    border-radius: 0.25em;
}

/** This is the main result container div. */
.NACC-Instance .NACC-Results {
    padding: 0.25em;
    text-align: center;
}

/** This is the change layout button. */
.NACC-Instance .NACC-Change-Layout-Button {
    display: block;
    clear: both;
    width: 100%;
    margin-top: 0.25em;
}

.NACC-Instance .NACC-Change-Layout-Button {
    display: block;
    clear: both;
    width: 100%;
    margin-top: 0.25em;
    margin-bottom: 0.25em;
}

/** This is the show special tags checkbox. */
.NACC-Instance .NACC-Show-Special-Tags-Checkbox {
    display: block;
    float:left;
    margin-right: 0.25em;
}

/** This is the show special tags checkbox label. */
.NACC-Instance .NACC-Show-Special-Tags-Checkbox-Label {
    clear: none;
    display: block;
    float:left;
}

/** This is the first line of the text display (total days). */
.NACC-Instance .NACC-Days {
}

/** This is the second line of the text (if provided). */
.NACC-Instance .NACC-MainBlurb {
}

/** This is the container for the keytag display. */
.NACC-Instance .NACC-Keytags {
    margin-top: 122px;
    display: table;
    margin-left: auto;
    margin-right: auto;
    background-color: transparent;
}

/** This allows us to compensate for the automatic offset of the tags. */
.NACC-Instance .NACC-Keytag-Tabular {
    margin-top: 82px;
    padding-right: 50px;
    text-align:left;
}

/** This describes a keytag image layout. */
.NACC-Instance .NACC-Keytag {
    width: 100px;
    max-width:100px;
    overflow: visible;
    margin-top:-122px;
    display: block;
    margin-left: auto;
    margin-right:auto;
    background-color: transparent;
}

/** If we are displaying a closed ring, then we add an image to the background. */
.NACC-Instance .NACC-Keytag.NACC-Keytag-Ringtop {
    background-image: url('images/00_RingTop.png');
    background-position: center top;
    background-size: 100%;
    background-repeat: no-repeat;
    background-attachment: local;
}

/** We display inline-block, so we get a flow that will wrap. */
.NACC-Instance .NACC-Keytag-Tabular .NACC-Keytag {
    display: inline-block;
    margin-top:-82px;
    margin-right:-50px;
}

/********************************************************************************************
######################################## DEFAULT STYLES #####################################
********************************************************************************************/

/** This is the overall container */
.NACC-Instance {
    border-radius: 0.4em;   /** Rounded corners. */
    border: solid 1px gray; /** Gray border. */
    background: linear-gradient(to bottom, gray, white);    /** Gray to white opaque gradient. */
}

/** These are the various textual items. */
.NACC-Instance {
    font-family: Arial, Sans-Serif, serif;
    color: black;
}

/** This is the header, at the top. */
.NACC-Instance .NACC-Header {
    font-size: large;
    font-weight: bold;
}

/** This is the main form fieldset. */
.NACC-Instance .NACC-Fieldset {
    border-radius: 0.3em;
    border: solid 1px gray;
    padding: 0.25em;
}

/** This is the legend for the fieldset, which contains the selects and calculate button. */
.NACC-Instance .NACC-Legend-div {
    margin: auto;
    text-align: center;
    border-radius: 0.25em;
    border: solid 1px gray;
    padding: 0.25em;
    background: linear-gradient(to top, gray, white);
}

/********************************************************************************************
######################################## NACC-BT STYLES #####################################
********************************************************************************************/

/** This is the overall container */
.NACC-Instance.NACC-BT {
    border-color: white;
    background: #009;
}

/** These are the various textual items. */
.NACC-Instance.NACC-BT {
    font-family: Verdana, Sans-Serif, serif;
}

/** This is the prompt above the selects. */
.NACC-Instance.NACC-BT .NACC-Prompt-Label {
    color: #009;
}

/** This is the header, at the top. */
.NACC-Instance.NACC-BT .NACC-Header {
    color: white;
}

/** This is the main form fieldset. */
.NACC-Instance.NACC-BT .NACC-Fieldset {
    border-color: white;
}

/** This is the legend for the fieldset, which contains the selects and calculate button. */
.NACC-Instance.NACC-BT .NACC-Legend-div {
    border-color: white;
    background: linear-gradient(to top, #009, white);
}
/** This is the show special tags checkbox. */
.NACC-Instance.NACC-BT .NACC-Results-Text,
.NACC-Instance.NACC-BT .NACC-Show-Special-Tags-Checkbox-Label {
    color:white
}

/********************************************************************************************
###################################### NACC-GNYR2 STYLES ####################################
********************************************************************************************/

/** This is the overall container */
.NACC-Instance.NACC-GNYR2 {
    border-color: white;
    background: #0C71C3;
}

/** These are the various textual items. */
.NACC-Instance.NACC-GNYR2 {
    font-family: Verdana, Sans-Serif, serif;
}

/** This is the prompt above the selects. */
.NACC-Instance.NACC-GNYR2 .NACC-Prompt-Label {
    color: #0C71C3;
}

/** This is the header, at the top. */
.NACC-Instance.NACC-GNYR2 .NACC-Header {
    color: white;
}

/** This is the main form fieldset. */
.NACC-Instance.NACC-GNYR2 .NACC-Fieldset {
    border-color: transparent;
}

/** This is the legend for the fieldset, which contains the selects and calculate button. */
.NACC-Instance.NACC-GNYR2 .NACC-Legend-div {
    border-color: #ACCACB;
    background: #ACCACB none;
}

/** This is the show special tags checkbox. */
.NACC-Instance.NACC-GNYR2 .NACC-Results-Text,
.NACC-Instance.NACC-GNYR2 .NACC-Show-Special-Tags-Checkbox-Label {
    color:white
}

.NACC-Instance.NACC-GNYR2 div.NACC-Popups {
    padding-top: 0.5em;
}

.NACC-Instance.NACC-GNYR2 .NACC-Calculate-Button,
.NACC-Instance.NACC-GNYR2 .NACC-Change-Layout-Button
{
    border: 1px solid #0C71C3;
    border-radius: 0.4em;   /** Rounded corners. */
    background-color: #0C71C3;
    color:white;
    padding: 0.25em;
    font-size: medium;
    cursor: pointer;
}

.NACC-Instance.NACC-GNYR2 .NACC-Calculate-Button:hover,
.NACC-Instance.NACC-GNYR2 .NACC-Change-Layout-Button:hover
{
    color:#fc6;
    text-decoration: none;
}

/********************************************************************************************
###################################### NACC-HOLI STYLES ####################################
********************************************************************************************/

/** This is the overall container */
.NACC-Instance.NACC-HOLI {
    border-color: white;
    background: transparent;
}

/** These are the various textual items. */
.NACC-Instance.NACC-HOLI {
    font-family: Verdana, Sans-Serif, serif;
}

/** This is the prompt above the selects. */
.NACC-Instance.NACC-HOLI .NACC-Prompt-Label {
    color: white;
    font-weight: bold;
}

/** This is the header, at the top. */
.NACC-Instance.NACC-HOLI .NACC-Header {
    color: white;
}

/** This is the main form fieldset. */
.NACC-Instance.NACC-HOLI .NACC-Fieldset {
    border-color: transparent;
}

/** This is the legend for the fieldset, which contains the selects and calculate button. */
.NACC-Instance.NACC-HOLI .NACC-Legend-div {
    border-color: #ACCACB;
    background: black none;
    padding: 0.25em;
}

/** This is the label and text in the results. */
.NACC-Instance.NACC-HOLI .NACC-Results-Text {
    color: #BE202D;
}

/** This is the show special tags checkbox label. */
.NACC-Instance.NACC-HOLI .NACC-Show-Special-Tags-Checkbox-Label {
    color: white;
    line-height: 1em;
    vertical-align: top;
}

.NACC-Instance.NACC-HOLI div.NACC-Popups {
    padding-top: 0.5em;
}

.NACC-Instance.NACC-HOLI .NACC-Calculate-Button,
.NACC-Instance.NACC-HOLI .NACC-Change-Layout-Button
{
    border: 1px solid #BE202D;
    border-radius: 0.4em;   /** Rounded corners. */
    background-color: #BE202D;
    color:white;
    padding: 0.25em;
    font-size: medium;
    cursor: pointer;
}

.NACC-Instance.NACC-HOLI .NACC-Calculate-Button:hover,
.NACC-Instance.NACC-HOLI .NACC-Change-Layout-Button:hover,
.NACC-Instance.NACC-HOLI .NACC-Calculate-Button:active,
.NACC-Instance.NACC-HOLI .NACC-Change-Layout-Button:active
{
    color:black;
    background-color:white;
    text-decoration: underline;
}

/********************************************************************************************
###################################### NACC-NERNA STYLES ####################################
********************************************************************************************/

/** This is the overall container */
.NACC-Instance.NACC-NERNA {
    border-color: white;
    background: #6a73da;
}

/** These are the various textual items. */
.NACC-Instance.NACC-NERNA {
    font-family: Verdana, Sans-Serif, serif;
}

/** This is the prompt above the selects. */
.NACC-Instance.NACC-NERNA .NACC-Prompt-Label {
    color: #6a73da;
}

/** This is the header, at the top. */
.NACC-Instance.NACC-NERNA .NACC-Header {
    color: white;
}

/** This is the main form fieldset. */
.NACC-Instance.NACC-NERNA .NACC-Fieldset {
    border-color: transparent;
}

/** This is the legend for the fieldset, which contains the selects and calculate button. */
.NACC-Instance.NACC-NERNA .NACC-Legend {
    border-color: #ACCACB;
    background: #ACCACB none;
}

/** This is the show special tags checkbox. */
.NACC-Instance.NACC-NERNA .NACC-Results-Text,
.NACC-Instance.NACC-NERNA .NACC-Show-Special-Tags-Checkbox-Label {
    color:white
}

.NACC-Instance.NACC-NERNA div.NACC-Popups {
    padding-top: 0.5em;
}

.NACC-Instance.NACC-NERNA .NACC-Calculate-Button,
.NACC-Instance.NACC-NERNA .NACC-Change-Layout-Button
{
    border: 1px solid #6a73da;
    border-radius: 0.4em;   /** Rounded corners. */
    background-color: #6a73da;
    color:white;
    padding: 0.25em;
    font-size: medium;
    cursor: pointer;
}

.NACC-Instance.NACC-NERNA .NACC-Calculate-Button:hover,
.NACC-Instance.NACC-NERNA .NACC-Change-Layout-Button:hover
{
    color:#fc6;
    text-decoration: none;
}

/********************************************************************************************
###################################### NACC-CRNA STYLES ####################################
********************************************************************************************/

/** This is the overall container */
.NACC-Instance.NACC-CRNA {
    border-color: white;
    background: #009;
}

/** These are the various textual items. */
.NACC-Instance.NACC-CRNA {
    font-family: Verdana, Sans-Serif, serif;
}

/** This is the prompt above the selects. */
.NACC-Instance.NACC-CRNA .NACC-Prompt-Label {
    color: #009;
}

/** This is the header, at the top. */
.NACC-Instance.NACC-CRNA .NACC-Header {
    color: white;
}

/** This is the main form fieldset. */
.NACC-Instance.NACC-CRNA .NACC-Fieldset {
    border-color: transparent;
}

/** This is the legend for the fieldset, which contains the selects and calculate button. */
.NACC-Instance.NACC-CRNA .NACC-Legend {
    border-color: #ACCACB;
    font-size: small;
    background: #ACCACB none;
}

/** This is the show special tags checkbox. */
.NACC-Instance.NACC-CRNA .NACC-Results-Text,
.NACC-Instance.NACC-CRNA .NACC-Show-Special-Tags-Checkbox-Label {
    color:white
}

.NACC-Instance.NACC-CRNA div.NACC-Popups {
    padding-top: 0.5em;
}

.NACC-Instance.NACC-CRNA .NACC-Calculate-Button,
.NACC-Instance.NACC-CRNA .NACC-Change-Layout-Button
{
    border: 1px solid #009;
    border-radius: 0.4em;   /** Rounded corners. */
    background-color: #009;
    color:white;
    padding: 0.25em;
    font-size: medium;
    cursor: pointer;
}

.NACC-Instance.NACC-CRNA .NACC-Calculate-Button:hover,
.NACC-Instance.NACC-CRNA .NACC-Change-Layout-Button:hover
{
    color:#fc6;
    text-decoration: none;
}

/********************************************************************************************
###################################### NACC-SEZF STYLES ####################################
********************************************************************************************/

/** This is the overall container */
.NACC-Instance.NACC-SEZF {
    border-color: white;
    background: transparent;
}
/** These are the various textual items. */
.NACC-Instance.NACC-SEZF {
    font-family: Verdana, Sans-Serif, serif;
}
/** This is the prompt above the selects. */
.NACC-Instance.NACC-SEZF .NACC-Prompt-Label {
    color: white;
    font-weight: bold;
}
/** This is the header, at the top. */
.NACC-Instance.NACC-SEZF .NACC-Header {
    color: white;
}
/** This is the main form fieldset. */
.NACC-Instance.NACC-SEZF .NACC-Fieldset {
    border-color: transparent;
}
/** This is the legend for the fieldset, which contains the selects and calculate button. */
.NACC-Instance.NACC-SEZF .NACC-Legend-div {
    border-color: #ACCACB;
    background: #178CA4 none;
    padding: 0.25em;
}
/** This is the label and text in the results. */
.NACC-Instance.NACC-SEZF .NACC-Results-Text {
    color: #072A40;
}
/** This is the show special tags checkbox label. */
.NACC-Instance.NACC-SEZF .NACC-Show-Special-Tags-Checkbox-Label {
    color: white;
    line-height: 1em;
    vertical-align: top;
}
.NACC-Instance.NACC-SEZF div.NACC-Popups {
    padding-top: 0.5em;
}
.NACC-Instance.NACC-SEZF .NACC-Calculate-Button,
.NACC-Instance.NACC-SEZF .NACC-Change-Layout-Button
{
    border: 1px solid #BE202D;
    border-radius: 0.4em;   /** Rounded corners. */
    background-color: #072A40;
    color:white;
    padding: 0.25em;
    font-size: medium;
    cursor: pointer;
}
.NACC-Instance.NACC-SEZF .NACC-Calculate-Button:hover,
.NACC-Instance.NACC-SEZF .NACC-Change-Layout-Button:hover,
.NACC-Instance.NACC-SEZF .NACC-Calculate-Button:active,
.NACC-Instance.NACC-SEZF .NACC-Change-Layout-Button:active
{
    color:black;
    background-color:white;
    text-decoration: underline;
}

/********************************************************************************************
###################################### NACC-Lantern STYLES ##################################
********************************************************************************************/

/**
 * Lantern theme — warm parchment / deep ink / terracotta ember.
 * Mirrors the editorial look of the Lantern WordPress theme so the
 * cleantime calculator stops looking like a generic embed when dropped
 * on a Lantern-themed site.
 *
 * Colors are inlined (no CSS vars) so the theme works whether or not
 * the Lantern WordPress theme is the active host theme.
 *   paper      #f7f1e6     paper-deep #efe6d3
 *   ink        #1a2538     ink-soft   #2c3a52
 *   ink-line   rgba(26,37,56,0.16)
 *   ember      #c7572b     ember-deep #9d3e1a
 */

/** Overall container — paper card with a soft ink border. */
.NACC-Instance.NACC-Lantern {
    border-radius: 4px;
    border: 1px solid rgba(26, 37, 56, 0.16);
    background: #f7f1e6;
    color: #1a2538;
    font-family: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    padding: 1.25rem;
}

/** Header — display serif if Lantern's Fraunces is loaded on the host. */
.NACC-Instance.NACC-Lantern .NACC-Header {
    color: #1a2538;
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    font-variation-settings: "opsz" 144, "SOFT" 40;
}

/** Prompt above the date selectors. */
.NACC-Instance.NACC-Lantern .NACC-Prompt-Label {
    color: #2c3a52;
    font-weight: 500;
}

/** Form fieldset wrapper. */
.NACC-Instance.NACC-Lantern .NACC-Fieldset {
    border-radius: 4px;
    border: 1px solid rgba(26, 37, 56, 0.16);
    background: transparent;
    padding: 0.75rem;
}

/** Legend (selects + calculate button block). */
.NACC-Instance.NACC-Lantern .NACC-Legend-div {
    border-radius: 4px;
    border: 1px solid rgba(26, 37, 56, 0.16);
    background: #efe6d3;
    padding: 0.5rem 0.75rem;
}

/** Inputs / selects inside the legend. */
.NACC-Instance.NACC-Lantern .NACC-Legend-div select,
.NACC-Instance.NACC-Lantern .NACC-Legend-div input[type="text"],
.NACC-Instance.NACC-Lantern .NACC-Date {
    background: #f7f1e6;
    color: #1a2538;
    border: 1px solid rgba(26, 37, 56, 0.16);
    border-radius: 4px;
    padding: 0.35em 0.5em;
}

/** Calculate + change-layout buttons — ember pill. */
.NACC-Instance.NACC-Lantern .NACC-Calculate-Button,
.NACC-Instance.NACC-Lantern .NACC-Change-Layout-Button {
    border: 1px solid #c7572b;
    border-radius: 999px;
    background: #c7572b;
    color: #f7f1e6;
    padding: 0.4em 1em;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 150ms ease, transform 150ms ease, color 150ms ease, border-color 150ms ease;
}
.NACC-Instance.NACC-Lantern .NACC-Calculate-Button:hover,
.NACC-Instance.NACC-Lantern .NACC-Change-Layout-Button:hover,
.NACC-Instance.NACC-Lantern .NACC-Calculate-Button:focus-visible,
.NACC-Instance.NACC-Lantern .NACC-Change-Layout-Button:focus-visible {
    background: #9d3e1a;
    border-color: #9d3e1a;
    color: #f7f1e6;
    transform: translateY(-1px);
}

/** Show-special-tags checkbox + label. */
.NACC-Instance.NACC-Lantern .NACC-Show-Special-Tags-Checkbox-Label {
    color: #2c3a52;
    font-size: 0.85rem;
    line-height: 1.4;
}
.NACC-Instance.NACC-Lantern .NACC-Show-Special-Tags-Checkbox {
    accent-color: #c7572b;
}

/** Results text. */
.NACC-Instance.NACC-Lantern .NACC-Results-Text,
.NACC-Instance.NACC-Lantern .NACC-Days,
.NACC-Instance.NACC-Lantern .NACC-MainBlurb {
    color: #1a2538;
}
.NACC-Instance.NACC-Lantern .NACC-Days {
    font-family: "Fraunces", Georgia, serif;
    font-weight: 500;
    font-variation-settings: "opsz" 144, "SOFT" 40;
}

/** Focus ring — ember, matches the rest of the theme. */
.NACC-Instance.NACC-Lantern :focus-visible {
    outline: 2px solid #c7572b;
    outline-offset: 2px;
}
