<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_b0247de2-8281-47b2-b682-d60450f52948">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-29</startDate>
            <endDate>2026-05-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_b0247de2-8281-47b2-b682-d60450f52948"
      id="F_c9edee9e-b11a-48b3-83a6-d8ca1c1941f0">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_b0247de2-8281-47b2-b682-d60450f52948"
      id="F_45783e1a-904c-47ae-9c31-ee7ee56068b7">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_b0247de2-8281-47b2-b682-d60450f52948"
      id="F_7fd6c84a-7547-4235-9e59-05a67ea87973">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_b0247de2-8281-47b2-b682-d60450f52948"
      id="F_3510a86c-8005-4ab4-8ae2-972a40474e3b">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_b0247de2-8281-47b2-b682-d60450f52948"
      id="F_83320456-0bc3-4bfa-8f2f-b04331134668">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_b0247de2-8281-47b2-b682-d60450f52948"
      id="F_096f0ac1-d2a3-47be-96b0-ff64a0e7b826">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b0247de2-8281-47b2-b682-d60450f52948"
      id="F_5c018f16-fa0e-4f07-991a-930108c650f7">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_b0247de2-8281-47b2-b682-d60450f52948"
      id="F_3c0ffe8b-644f-4069-998f-5c2a72a2955e">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_b0247de2-8281-47b2-b682-d60450f52948"
      id="F_095a2043-d9b7-4520-8bab-3c9fe3e9a570">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_b0247de2-8281-47b2-b682-d60450f52948"
      id="F_042d5225-6375-47c3-ac82-f12f210239c6">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;The prospectus to which this Exhibit is attached is a final prospectus for the related offering.  The maximum aggregate offering price for such offering is $&lt;/span&gt;&lt;span style="font-size:12pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;1,000,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_b0247de2-8281-47b2-b682-d60450f52948"
      decimals="0"
      id="F_0a144655-615e-4e1b-a3fb-37ae4be163ea"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
