<% if result.format == "recommended-link" %>
  <li class="type-guide external">
<% else %>
  <li class="section-<%= result.section %> type-<%= result.format %>">
<% end %>
  <p class="search-result-title"><a href="<%= result.link %>" title="View <%= result.title %>"<% if result.format == "recommended-link" %> rel="external"<% end %>><%= result.title %></a></p>
  <p><%= result.description %></p>

  <% if result.format == "recommended-link" %>
    <ul class="result-meta">
      <li><%= result.link %></li>
    </ul>
  <% elsif (result.format == 'detailed_guidance' && result.section) || result.section %>
    <ul class="result-meta">
      <li><%= result.formatted_section_name %></li>
      <% if result.subsection %><li><%= result.formatted_subsection_name %></li><% end %>
      <% if result.subsubsection %><li><%= result.formatted_subsubsection_name %></li><% end %>
    </ul>
  <% end %>
</li>

<% if result.format == "recommended-link" %>
  <li class="type-guide external">
<% else %>
  <li class="section-<%= result.section %> type-<%= result.format %>">
<% end %>
  <p class="search-result-title"><a href="<%= result.link %>" title="View <%= result.title %>"<% if result.format == "recommended-link" %> rel="external"<% end %>><%= result.title %></a></p>
  <p><%= result.description %></p>

  <% if result.format == "recommended-link" %>
    <ul class="result-meta">
      <li><%= result.link %></li>
    </ul>
  <% elsif (result.format == 'detailed_guidance' && result.section) || result.section %>
    <ul class="result-meta result-sections">
      <li class="result-section"><%= result.formatted_section_name %></li>
      <% if result.subsection %><li class="result-subsection"><%= result.formatted_subsection_name %></li><% end %>
      <% if result.subsubsection %><li class="result-subsubsection"><%= result.formatted_subsubsection_name %></li><% end %>
    </ul>
  <% end %>
</li>

Add styling hooks to result section data
Add styling hooks to result section data
