<?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_512bf6d0-7031-4ee5-bf43-d58ce104866b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-02</startDate>
            <endDate>2026-07-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_512bf6d0-7031-4ee5-bf43-d58ce104866b"
      id="F_6488d9ee-01ee-45c3-9d54-c844667287f0">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_512bf6d0-7031-4ee5-bf43-d58ce104866b"
      id="F_43d1434f-56cc-4aaf-aa2f-f35c94da36ef">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_512bf6d0-7031-4ee5-bf43-d58ce104866b"
      id="F_d5dfcf2f-ba7c-417a-9032-d5006ba99b5a">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_512bf6d0-7031-4ee5-bf43-d58ce104866b"
      id="F_d50543aa-505c-4de1-9614-692987646745">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_512bf6d0-7031-4ee5-bf43-d58ce104866b"
      id="F_e17d5f4d-4e16-4619-aea2-9e6bfbba2688">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_512bf6d0-7031-4ee5-bf43-d58ce104866b"
      id="F_3493970f-8904-4df6-a5a2-552fd19fab15">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_512bf6d0-7031-4ee5-bf43-d58ce104866b"
      id="F_a6ff03fb-4336-4ed0-8e81-f59385f3bf33">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_512bf6d0-7031-4ee5-bf43-d58ce104866b"
      id="F_feac8972-53df-4cd1-85dc-1c24603a37d4">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_512bf6d0-7031-4ee5-bf43-d58ce104866b"
      id="F_dfc4e3d4-0fc6-4313-bd1d-f57fae7589a4">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_512bf6d0-7031-4ee5-bf43-d58ce104866b"
      id="F_50c0e006-2195-4949-bdea-5e1fde0e1bdb">&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,527,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_512bf6d0-7031-4ee5-bf43-d58ce104866b"
      decimals="-3"
      id="F_620bd540-6b89-484b-a9c5-107669316a36"
      unitRef="U_USD">2527000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
