/* YELL-RF25 Main Stylesheet */
html {
  font-size: 17px;
}
body {
  font-size: 1rem;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-weight: 400;
  background: #f7f7f7;
  color: #222;
  margin: 0;
  box-sizing: border-box;
  padding: 0;
}
header {
  background: #ff6600;
  color: #fff;
  padding: 0.6rem 0.7rem 0.3rem 0.7rem;
  text-align: center;
  position: relative;
  margin-bottom: 0.15em;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
  padding-left: 1em;
  padding-right: 1em;
}
main {
  max-width: 700px;
  margin: 2rem auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px #0001;
  padding: 2rem;
  padding-top: 0.5em;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
  padding-left: 1em;
  padding-right: 1em;
  padding-bottom: 1em;
  margin-bottom: 5px !important;
  margin-top: 0.5em;
}
h1 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h4, details > summary h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
}
.yell-headline {
  font-size: 1.05rem;
  font-weight: 600;
}
.header-bar {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
  max-width: 100%;
  margin: 0 auto 0.4em auto;
  box-sizing: border-box;
  padding-left: 0;
  padding-right: 0;
}
.header-bar {
  max-width: 100%;
  overflow: hidden;
}
.header-search {
  float: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  max-width: 400px;
  width: 100%;
  margin-left: 0;
  flex: 1 1 0;
  overflow: hidden;
}
.header-search form {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  max-width: 100%;
  gap: 0;
}
.header-search input[type="text"] {
  height: 2.9rem;
  line-height: 1.2;
  margin-right: 0.7rem;
  box-sizing: border-box;
  border-radius: 4px 0 0 4px;
  font-size: 1rem;
  padding: 0.7rem 1rem;
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
}
.header-search button.btn-yell {
  height: 2.9rem;
  border-radius: 0 4px 4px 0;
  font-size: 1rem;
  padding: 0.7rem 1.5rem;
  flex: 0 0 auto;
  max-width: 160px;
  width: auto;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 700px) {
  .header-search input[type="text"], .header-search button.btn-yell {
    height: 2.5rem;
    margin-right: 0;
    border-radius: 4px;
    padding: 0.7rem 1rem;
  }
  .header-search {
    max-width: 100%;
  }
  .header-search button.btn-yell {
    max-width: 100%;
    width: 100%;
  }
}
.btn-yell {
  background: #e65100 !important; /* darker orange */
  color: #fff;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  min-width: 0;
  max-width: 160px;
  width: auto;
  display: flex;
  align-items: center;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  padding-left: 0.6rem;
  padding-right: 0.9rem;
}
.btn-yell:hover, .btn-yell:focus {
  background: #111;
  color: #fff;
  box-shadow: 0 4px 16px #000a;
}
.header-search button.btn-yell:hover,
.header-search button.btn-yell:focus {
  background: #111 !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 4px 16px #000a !important;
}
@media (max-width: 700px) {
  html {
    font-size: 15px;
  }
  h1 {
    font-size: 1.3rem;
  }
  h4, details > summary h4 {
    font-size: 1rem;
  }
  .yell-headline {
    font-size: 1rem;
  }
  .main-title {
    font-size: 1.3rem;
  }
  .subtitle {
    font-size: 0.8rem;
    margin-bottom: 0.3em;
  }
  .header-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
  }
  .header-yell-btn {
    width: 100%;
  }
  .header-search {
    max-width: 100%;
    width: 100%;
  }
  .header-search form {
    width: 100%;
  }
  .header-search input[type="text"], .header-search button.btn-yell {
    width: 100%;
    max-width: 100%;
  }
  header {
    padding: 0.4rem 0.2rem 0.1rem 0.2rem;
  }
}

@media (max-width: 400px) {
  html {
    font-size: 13px;
  }
  h1 {
    font-size: 1.1rem;
  }
  h4, details > summary h4 {
    font-size: 0.95rem;
  }
  .yell-headline {
    font-size: 0.95rem;
  }
  .main-title {
    font-size: 1rem;
  }
  .subtitle {
    font-size: 0.7rem;
  }
  .header-yell-btn {
    min-width: 0;
    font-size: 1rem;
    padding: 0.7rem 1rem;
  }
  header {
    padding: 0.2rem 0.1rem 0.05rem 0.1rem;
  }
}

/* Remove underline from .main-title link and add black hover effect */
.main-title {
  text-decoration: none !important;
}
.main-title:hover, .main-title:focus {
  color: #111 !important;
  background: none !important;
  text-decoration: none !important;
  transition: color 0.2s;
}

/* Main menu styling for section links under the orange header */
.main-menu {
  background: #fff;
  box-shadow: 0 2px 8px #ff660022;
  border-radius: 0 0 8px 8px;
  margin: 0 auto 1.2em auto;
  max-width: 600px;
  width: 100%;
  padding: 0.5em 0 0.5em 0;
  display: flex;
  justify-content: center;
}
.main-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2em;
}
.main-menu li {
  display: inline;
}
.main-menu a {
  color: #ff6600;
  font-weight: bold;
  text-decoration: none;
  font-size: 1.08em;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.2em 0.5em;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
.main-menu a:hover, .main-menu a:focus {
  background: #ff6600;
  color: #fff;
}

#yell-form .form-input:focus, #yell-form .form-textarea:focus {
  border: 2px solid #ff6600;
  outline: none;
  background: #fffbe6;
  transition: border 0.2s, background 0.2s;
}

.accordion {
  margin-bottom: 2rem;
}
.accordion summary {
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
}
/* Accordion arrow styling */
details > summary {
  list-style: none;
  display: flex;
  align-items: center;
  font-size: 1.5em;
  cursor: pointer;
}
details > summary::-webkit-details-marker {
  display: none;
}

/* Custom arrow */
details[open] > summary::before,
details > summary::before {
  content: '\25B6'; /* right-pointing arrow */
  display: inline-block;
  font-size: 1.2em;
  margin-right: 0.7em;
  color: #ff9900;
  font-weight: bold;
  border: 0;
  border-radius: 0;
  width: auto;
  height: auto;
  background: transparent;
  filter: none;
  box-shadow: none;
  text-shadow: none;
  transition: transform 0.2s, color 0.2s;
}
details[open] > summary::before {
  transform: rotate(90deg) scale(1.1);
  color: #ff6600;
}
details > summary:hover::before {
  color: #ff6600;
  background: transparent;
}
details[open] > summary:hover {
  color: #ff6600;
}
details[open] > summary:focus {
  color: #ff6600;
}
details > summary:hover {
  color: #ff6600;
}
.form-field {
  margin-bottom: 1rem;
}
.form-label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 500;
}
.form-input, .form-textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.btn-yell {
  background: #e65100 !important; /* darker orange */
  color: #fff;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  min-width: 0;
  max-width: 160px;
  width: auto;
  display: flex;
  align-items: center;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  padding-left: 0.6rem;
  padding-right: 0.9rem;
}
.btn-yell:hover, .btn-yell:focus {
  background: #111;
  color: #fff;
  box-shadow: 0 4px 16px #000a;
}
.hashtags, .yells {
  margin: 1.5rem 0;
}
.hashtags ul, .yells ul {
  list-style: none;
  padding: 0;
}
.hashtags li, .yells li {
  display: inline-block;
  margin: 0.2rem 0.5rem 0.2rem 0;
}
.hashtags a {
  background: #eee;
  color: #ff6600;
  padding: 0.3rem 0.7rem;
  border-radius: 3px;
  text-decoration: none;
}
.hashtags a:hover {
  background: #ff6600;
  color: #fff;
}
.yells li {
  background: #f3f3f3;
  border-radius: 4px;
  padding: 0.7rem;
  margin-bottom: 0.5rem;
}
.yells strong {
  font-size: 1.1rem;
}
.yells em {
  color: #888;
}
.search-form {
  display: none;
}
/* Accordion preview styling */
details > summary .preview {
  font-size: 0.7em;
  color: #888;
  margin-left: 1em;
  font-weight: normal;
}

.main-title {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 2px 8px #ff660055;
  display: block;
  margin-bottom: 0.05em;
}
.subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  color: #fff8;
  margin-top: -0.3em;
  margin-bottom: 0.4em;
  letter-spacing: 0.01em;
}

.headline-label {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
}
.headline-note {
  font-family: 'Georgia', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: #888;
  margin-left: 0.3em;
}
.required-label {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 0.92rem;
  color: #ff6600;
  font-weight: 600;
  margin-left: 0.5em;
  text-transform: lowercase;
}
label[for="yell_headline"].form-label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2em;
}
.headline-label, .headline-note, .required-label {
  display: inline;
  white-space: nowrap;
}
@media (max-width: 500px) {
  label[for="yell_headline"].form-label {
    font-size: 0.98rem;
    gap: 0.1em;
  }
  .headline-label, .headline-note, .required-label {
    font-size: 0.98rem;
  }
}
@media (max-width: 700px) {
  html {
    font-size: 15px;
  }
  h1 {
    font-size: 1.3rem;
  }
  h4, details > summary h4 {
    font-size: 1rem;
  }
  .yell-headline {
    font-size: 1rem;
  }
  .main-title {
    font-size: 1.3rem;
  }
  .subtitle {
    font-size: 0.8rem;
    margin-bottom: 0.3em;
  }
  .header-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
  }
  .header-yell-btn {
    width: 100%;
  }
  .header-search {
    max-width: 100%;
    width: 100%;
  }
  .header-search form {
    width: 100%;
  }
  .header-search input[type="text"], .header-search button.btn-yell {
    width: 100%;
    max-width: 100%;
  }
  header {
    padding: 0.4rem 0.2rem 0.1rem 0.2rem;
  }
}

@media (max-width: 400px) {
  html {
    font-size: 13px;
  }
  h1 {
    font-size: 1.1rem;
  }
  h4, details > summary h4 {
    font-size: 0.95rem;
  }
  .yell-headline {
    font-size: 0.95rem;
  }
  .main-title {
    font-size: 1rem;
  }
  .subtitle {
    font-size: 0.7rem;
  }
  .header-yell-btn {
    min-width: 0;
    font-size: 1rem;
    padding: 0.7rem 1rem;
  }
  header {
    padding: 0.2rem 0.1rem 0.05rem 0.1rem;
  }
}

/* Orange trin-barer til formularen */
.form-separator {
  background: #ff6600;
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
  padding: 0.7em 1em;
  border-radius: 6px;
  margin: 1.2em 0 1.2em 0;
  text-align: left;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px #ff660033;
  display: flex;
  align-items: center;
  gap: 0.7em;
}
.form-separator span {
  font-size: 1.1em;
  font-weight: bold;
  letter-spacing: 0.04em;
}
@media (max-width: 600px) {
  .form-separator {
    font-size: 1rem;
    padding: 0.5em 0.7em;
  }
}