<?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_a648156d-f382-4416-a23c-f51f7fef63b6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-09</startDate>
            <endDate>2026-06-09</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_a648156d-f382-4416-a23c-f51f7fef63b6"
      id="F_352c7130-52fe-46c7-860d-43cb45af2bdd">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a648156d-f382-4416-a23c-f51f7fef63b6"
      id="F_678ab650-bcc1-49bc-b173-7a72599d326b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_a648156d-f382-4416-a23c-f51f7fef63b6"
      id="F_4242207e-7387-430d-8fcd-74c42b1dec88">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_a648156d-f382-4416-a23c-f51f7fef63b6"
      id="F_3a39869c-8705-4ffb-8363-565a430c20e6">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_a648156d-f382-4416-a23c-f51f7fef63b6"
      id="F_2d7d7827-b234-4bf5-8ef9-022c776fe2f4">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_a648156d-f382-4416-a23c-f51f7fef63b6"
      id="F_a6445ef7-98fa-4bcf-b1a9-4a89fe7baa35">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_a648156d-f382-4416-a23c-f51f7fef63b6"
      id="F_bcf78390-086e-4250-9b3b-18aec5ae0354">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_a648156d-f382-4416-a23c-f51f7fef63b6"
      id="F_c38d01e5-fdbc-4681-9c70-c183686d28a9">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_a648156d-f382-4416-a23c-f51f7fef63b6"
      id="F_40912938-d6b0-4ef6-a587-fccb125154bc">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_a648156d-f382-4416-a23c-f51f7fef63b6"
      id="F_996094ed-d1bb-48bf-9002-96b64e9bfdf1">&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;2,030,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_a648156d-f382-4416-a23c-f51f7fef63b6"
      decimals="-3"
      id="F_33f2ecc8-7768-4820-8e78-8ebc198b862a"
      unitRef="U_USD">2030000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
