/* App styles */

:root {
  --color-text: #1f2937;
  --color-muted: #333;
  --color-mitsu-400: #ff2537;
  --color-mitsu-500: #e50b1d;
  --color-mitsu-600: #cc0004;
  --border-gray-300: #d1d5db;
  --border-gray-700: #374151;
  --green-600: #16a34a;
  --shadow-inset: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
}

*,
::before,
::after {
  box-sizing: border-box;
  /* 1 */
  border-width: 0;
  /* 2 */
  border-style: solid;
  /* 2 */
  border-color: #e5e7eb;
  /* 2 */
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5;
  /* 1 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
  -moz-tab-size: 4;
  /* 3 */
  -o-tab-size: 4;
  tab-size: 4;
  /* 3 */
  font-family: Roboto, Helvetica, Arial, sans-serif;
  /* 4 */
  font-feature-settings: normal;
  /* 5 */
  font-variation-settings: normal;
  /* 6 */
  -webkit-tap-highlight-color: transparent;
  /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0;
  /* 1 */
  line-height: inherit;
  /* 2 */
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  text-decoration: inherit;
}

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0;
  /* 1 */
  border-color: inherit;
  /* 2 */
  border-collapse: collapse;
  /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
select,
textarea {
  font-family: inherit;
  /* 1 */
  font-feature-settings: inherit;
  /* 1 */
  font-variation-settings: inherit;
  /* 1 */
  font-size: 100%;
  /* 1 */
  font-weight: inherit;
  /* 1 */
  line-height: inherit;
  /* 1 */
  letter-spacing: inherit;
  /* 1 */
  color: inherit;
  /* 1 */
  margin: 0;
  /* 2 */
  padding: 0;
  /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button;
  /* 1 */
  background-color: transparent;
  /* 2 */
  background-image: none;
  /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield;
  /* 1 */
  outline-offset: -2px;
  /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button;
  /* 1 */
  font: inherit;
  /* 2 */
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder,
textarea::-moz-placeholder {
  opacity: 1;
  /* 1 */
  color: #9ca3af;
  /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1;
  /* 1 */
  color: #9ca3af;
  /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role='button'] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/

:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  /* 1 */
  vertical-align: middle;
  /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */

[hidden]:where(:not([hidden='until-found'])) {
  display: none;
}

/* =============================== */

/* Basic layout utilities (kept minimal) */
.container {
  width: 100%;
}
.inline-block {
  display: inline-block;
}
.hidden {
  display: none !important;
}
.p-6 {
  padding: 1.5rem;
}
.pb-2 {
  padding-bottom: 0.5rem;
}
.w-fit {
  width: fit-content;
}

/* Stacked spacing helpers used in JSX */
.space-y-2\.5 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 0.625rem;
}
.space-y-4 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 1rem;
}

/* Simple grid used on admin home */
.grid {
  display: grid;
}
.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.gap-x-20 {
  column-gap: 5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  text-align: center;
  text-transform: uppercase;
  font-size: 14px;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  color: #404040;
  background: #e4e4e7;
  box-shadow:
    0px 1px 5px 0px rgba(0, 0, 0, 0.2),
    0px 2px 2px 0px rgba(0, 0, 0, 0.14),
    0px 3px 1px -2px rgba(0, 0, 0, 0.12);
}
.btn:hover {
  background: #d4d4d8;
}
.btn:focus {
  background: #f4f4f5;
}
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.btn-red {
  background: var(--color-mitsu-500);
  color: #fff;
}
.btn-red:hover {
  background: var(--color-mitsu-600);
}
.btn-red:focus {
  background: var(--color-mitsu-400);
}

.btn-action {
  text-transform: uppercase;
  width: 16rem;
}

/* Form + labels */
.label {
  display: inline-block;
  font-size: 15px;
  font-weight: bold;
  line-height: 2;
  margin-right: 0.5em;
  text-align: right;
  width: 65px;
}
.input {
  width: 55px;
  font-size: 13px;
  border-radius: 0.25rem;
  border: 1px solid var(--border-gray-300);
  padding: 0.25rem 0.25rem;
  line-height: 18px;
  box-shadow: var(--shadow-inset);
}
.input:focus {
  border-color: var(--border-gray-700);
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.input-error {
  border-color: var(--color-mitsu-500) !important;
}
.input-error-text {
  color: #dc2626;
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1em;
  letter-spacing: 0.03333em;
  margin: 0.25em 0 0;
  min-height: 1em;
  text-align: right;
  width: 127.5px;
}

/* Header areas */
.admin-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  color: #fff;
  background-color: #000;
  font-size: 20px;
  min-height: 64px;
  padding: 0 24px;
  width: 100%;
  margin-bottom: 1rem;
}

.cookout-header {
  font-size: 16px;
  font-weight: bold;
  line-height: 1.2;
  margin: 0 0 0.5em 0;
  text-align: center;
  position: absolute;
  left: 170px;
  top: 20px;
  width: 140px;
}

.cookout-header::before {
  content: '';
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 0;
  background-image: url(/mitsubishi-logo.svg);
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 64px 64px;
  margin-bottom: 0.25rem;
}

/* Snackbar */
.snackbar-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-600);
  color: #fff;
  z-index: 10;
  border-radius: 4px;
  min-width: 288px;
  max-width: 90vw;
  box-shadow:
    0px 3px 5px -1px rgba(0, 0, 0, 0.2),
    0px 6px 10px 0px rgba(0, 0, 0, 0.14),
    0px 1px 18px 0px rgba(0, 0, 0, 0.12);
  animation: 300ms ease-out forwards slide-up;
  overflow: hidden;
}
.snackbar-label {
  line-height: 1.2rem;
  padding-left: 16px;
  padding-right: 8px;
  width: calc(100% - 36px);
  margin: 0;
  padding-top: 14px;
  padding-bottom: 14px;
  word-wrap: break-word;
}
.snackbar-dismiss {
  color: #fff;
  font-size: 120%;
  font-weight: bold;
  margin-left: 8px;
  margin-right: 8px;
  cursor: pointer;
  padding: 8px;
}
@keyframes slide-up {
  from {
    opacity: 0;
    transform: translate(-50%, -3rem);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
@media (min-width: 640px) {
  .snackbar-container {
    max-width: 672px;
  }
}

.footer {
  color: var(--color-muted);
  display: block;
  font-size: 0.8em;
  line-height: 18px;
  position: fixed;
  right: 1em;
  bottom: 1em;
}

.made-by {
  color: var(--color-mitsu-500);
}

.results-h2 {
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.results-h3 {
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 700;
  text-transform: capitalize;
}

.results-cell {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  padding-right: 1rem;
  text-align: right;
}

.destructive-actions {
  text-align: right;
  padding-bottom: 0.5rem;
}

.vote-container {
  padding: 1.5rem;
  width: 320px;
}

.btn-submit {
  width: 127.5px;
  margin-top: 1rem !important;
}
