<?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_bc8d4ae6-a13b-4729-8e8a-d266dfdca4fe">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-07</startDate>
            <endDate>2026-07-07</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_bc8d4ae6-a13b-4729-8e8a-d266dfdca4fe"
      id="F_82df16c5-3d4a-454c-8174-ff0a29ab032b">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_bc8d4ae6-a13b-4729-8e8a-d266dfdca4fe"
      id="F_8f1f7990-dc0d-44d0-9b90-1b53a1c2af83">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_bc8d4ae6-a13b-4729-8e8a-d266dfdca4fe"
      id="F_b7ffa2c5-3c6d-4aef-a9dc-7213c9e55be3">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_bc8d4ae6-a13b-4729-8e8a-d266dfdca4fe"
      id="F_779ac407-3e13-4140-a42e-ce897d44da15">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_bc8d4ae6-a13b-4729-8e8a-d266dfdca4fe"
      id="F_30e7c953-baa7-4f24-8c02-71acb6d447d4">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_bc8d4ae6-a13b-4729-8e8a-d266dfdca4fe"
      id="F_9ced7530-501a-4f11-8c73-10a6a3dc1ce2">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_bc8d4ae6-a13b-4729-8e8a-d266dfdca4fe"
      id="F_a52a42aa-6b48-4fdc-8673-cfafcf329c85">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_bc8d4ae6-a13b-4729-8e8a-d266dfdca4fe"
      id="F_f8968198-51bd-4181-9920-c30201ebb022">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_bc8d4ae6-a13b-4729-8e8a-d266dfdca4fe"
      id="F_129fb5ce-1633-4127-a6ec-6e1afcfa65f9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_bc8d4ae6-a13b-4729-8e8a-d266dfdca4fe"
      id="F_e6401e2b-c563-4de0-8c5c-b301c61227ca">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:right;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-weight:bold;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;EX-FILING FEES&lt;/span&gt;&lt;/p&gt;&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,554,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_bc8d4ae6-a13b-4729-8e8a-d266dfdca4fe"
      decimals="-3"
      id="F_a86d8a32-78c9-4bea-b6dd-11a39de4c63d"
      unitRef="U_USD">2554000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
