<?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_77b39689-e1c1-4539-800c-8491336c2c89">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-21</startDate>
            <endDate>2026-07-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_77b39689-e1c1-4539-800c-8491336c2c89"
      id="F_a20f3c36-5aae-416d-9a87-849e1b3085c3">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_77b39689-e1c1-4539-800c-8491336c2c89"
      id="F_921d9912-80d3-400c-bfe7-2e9f7a69a810">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_77b39689-e1c1-4539-800c-8491336c2c89"
      id="F_de83dfcf-774e-4c76-bea5-46bb417dee9d">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_77b39689-e1c1-4539-800c-8491336c2c89"
      id="F_4e58a152-c9f7-4afa-9e9a-ee5ae3aa51cd">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_77b39689-e1c1-4539-800c-8491336c2c89"
      id="F_09dab2bc-e6da-455c-8b57-b094510fb3b4">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_77b39689-e1c1-4539-800c-8491336c2c89"
      id="F_2b61ec92-d8e5-4349-a3eb-acd4e0383aac">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_77b39689-e1c1-4539-800c-8491336c2c89"
      id="F_bcf3e6e5-9f7a-4e74-8002-03cfb85a8daa">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_77b39689-e1c1-4539-800c-8491336c2c89"
      id="F_55ffca33-30ea-4ac4-b2e6-bd8979462cc6">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_77b39689-e1c1-4539-800c-8491336c2c89"
      id="F_83c414f8-c099-4d77-b8c4-233281a72c71">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_77b39689-e1c1-4539-800c-8491336c2c89"
      id="F_4d97f333-4263-49ad-af49-e1528bd33fe6">&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;4,019,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_77b39689-e1c1-4539-800c-8491336c2c89"
      decimals="-3"
      id="F_25302739-8bab-4028-b0ad-9b28c5e173a7"
      unitRef="U_USD">4019000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
