<?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_0bdddfb8-3a69-4996-9e06-ebe87cb05717">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-28</startDate>
            <endDate>2026-07-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_0bdddfb8-3a69-4996-9e06-ebe87cb05717"
      id="F_4c97d6a3-2b14-4af3-8ddb-e5b2663a6c4e">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_0bdddfb8-3a69-4996-9e06-ebe87cb05717"
      id="F_42f8da91-0c95-487d-a8f8-7971270c84e0">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_0bdddfb8-3a69-4996-9e06-ebe87cb05717"
      id="F_2e031947-5181-4342-a983-3a28a776adae">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_0bdddfb8-3a69-4996-9e06-ebe87cb05717"
      id="F_537a8392-d95f-48b8-9ac4-e2a4e25b0773">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_0bdddfb8-3a69-4996-9e06-ebe87cb05717"
      id="F_7211ae6b-7d08-4699-8330-2ea6be1beccf">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0bdddfb8-3a69-4996-9e06-ebe87cb05717"
      id="F_940a0ad3-0493-4853-853a-4df3bf4656c5">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_0bdddfb8-3a69-4996-9e06-ebe87cb05717"
      id="F_f8d46601-7d2c-49c8-8a4f-10381ecc974a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_0bdddfb8-3a69-4996-9e06-ebe87cb05717"
      id="F_fa5628ad-56d7-437e-9991-7039259f75bd">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_0bdddfb8-3a69-4996-9e06-ebe87cb05717"
      id="F_24e69fc0-cb55-42b8-850a-35944df84476">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_0bdddfb8-3a69-4996-9e06-ebe87cb05717"
      id="F_497974db-8e91-42b2-82d5-a1772ee2596d">&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;12,061,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_0bdddfb8-3a69-4996-9e06-ebe87cb05717"
      decimals="-3"
      id="F_e864c34e-beac-43a4-a5b6-12172ea4837f"
      unitRef="U_USD">12061000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
