<?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_3aaf638d-e1e1-4ca2-b3e3-ee85b0dc59a3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-22</startDate>
            <endDate>2026-06-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_3aaf638d-e1e1-4ca2-b3e3-ee85b0dc59a3"
      id="F_56ad8750-2988-4640-893a-7dee1a179a8f">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3aaf638d-e1e1-4ca2-b3e3-ee85b0dc59a3"
      id="F_69345cee-12b3-4659-92f8-7054f9603842">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_3aaf638d-e1e1-4ca2-b3e3-ee85b0dc59a3"
      id="F_5db9728e-a9fc-473e-9bcc-42ff8abe7e56">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_3aaf638d-e1e1-4ca2-b3e3-ee85b0dc59a3"
      id="F_845cf881-2ca1-4b45-b1c7-b0d1322d87eb">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_3aaf638d-e1e1-4ca2-b3e3-ee85b0dc59a3"
      id="F_38021f32-e653-4bff-8151-a11b5bf8fec9">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_3aaf638d-e1e1-4ca2-b3e3-ee85b0dc59a3"
      id="F_c6b0982c-d747-436c-a4bf-604f007af17b">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_3aaf638d-e1e1-4ca2-b3e3-ee85b0dc59a3"
      id="F_851099df-4e18-4fae-88c2-4f446dfa0418">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_3aaf638d-e1e1-4ca2-b3e3-ee85b0dc59a3"
      id="F_8d83806f-c44a-4f2c-85cb-b0df1d0e4212">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_3aaf638d-e1e1-4ca2-b3e3-ee85b0dc59a3"
      id="F_09464af7-79b4-44ca-b89b-d6e37fe08802">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_3aaf638d-e1e1-4ca2-b3e3-ee85b0dc59a3"
      id="F_585d3241-012f-4daf-a886-b2bf37e581db">&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;804,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_3aaf638d-e1e1-4ca2-b3e3-ee85b0dc59a3"
      decimals="-3"
      id="F_f7b40388-ee8b-4478-8da3-cd26001e7d4c"
      unitRef="U_USD">804000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
