<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_727eaab1-0549-4931-8c97-b1ad5c960a98">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-01</startDate>
            <endDate>2026-06-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_727eaab1-0549-4931-8c97-b1ad5c960a98"
      id="F_600a8a2b-e7dd-4c34-ac55-ca59ad73b199">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_727eaab1-0549-4931-8c97-b1ad5c960a98"
      id="F_21115d64-f7f9-43f9-ac64-cc2ded661784">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_727eaab1-0549-4931-8c97-b1ad5c960a98"
      id="F_bc39c106-6e46-439c-8eb8-58d1fbd09fa4">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_727eaab1-0549-4931-8c97-b1ad5c960a98"
      id="F_80ad5c92-2249-4cc3-8886-87f7acf89c26">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_727eaab1-0549-4931-8c97-b1ad5c960a98"
      id="F_845f5f0d-4dc5-4863-a6d0-4e8becb0a7e7">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_727eaab1-0549-4931-8c97-b1ad5c960a98"
      id="F_6796fcc0-a85d-49d5-b53c-01d88ef0217c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_727eaab1-0549-4931-8c97-b1ad5c960a98"
      id="F_774ade2c-4b3e-4947-8bad-eba6bdfa06b4">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_727eaab1-0549-4931-8c97-b1ad5c960a98"
      id="F_e61b1c3c-66c4-4f97-82ea-dc66478e8fd5">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_727eaab1-0549-4931-8c97-b1ad5c960a98"
      id="F_a3ca68bc-96c3-4d1c-a0c3-6610494a0df5">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_727eaab1-0549-4931-8c97-b1ad5c960a98"
      id="F_fbdcf162-7159-4277-8de3-78bf9d3197a4">&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;10,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_727eaab1-0549-4931-8c97-b1ad5c960a98"
      decimals="-6"
      id="F_68e7e407-9ff1-497a-b72c-94cd632b061e"
      unitRef="U_USD">10000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
