<?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_e781fd63-8657-47ee-b767-4bde2e1ae638">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-11</startDate>
            <endDate>2026-08-11</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_e781fd63-8657-47ee-b767-4bde2e1ae638"
      id="F_a75cfa00-8e0f-4492-a585-07a1f7859f50">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_e781fd63-8657-47ee-b767-4bde2e1ae638"
      id="F_1d762b8d-1745-47f6-bd10-3309a0e3edef">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_e781fd63-8657-47ee-b767-4bde2e1ae638"
      id="F_3adc4e73-0f1f-49f6-bdb7-2a659215a696">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_e781fd63-8657-47ee-b767-4bde2e1ae638"
      id="F_90f67106-9e3f-4af0-a283-fc9970372426">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_e781fd63-8657-47ee-b767-4bde2e1ae638"
      id="F_d0f118c9-d546-468f-9ef0-9dadcc141b1e">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_e781fd63-8657-47ee-b767-4bde2e1ae638"
      id="F_631a4f2b-71fb-4d78-ba47-348664697638">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_e781fd63-8657-47ee-b767-4bde2e1ae638"
      id="F_86f8d078-a65f-4884-9cb8-0b685aad2b16">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_e781fd63-8657-47ee-b767-4bde2e1ae638"
      id="F_371e9414-a1c6-4a84-b238-4c84d0baf163">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e781fd63-8657-47ee-b767-4bde2e1ae638"
      id="F_1a6f22c6-8d05-427d-b18c-ace8355f0cc5">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_e781fd63-8657-47ee-b767-4bde2e1ae638"
      id="F_12879af1-39e3-4baa-9e58-a7ca4e575973">&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;617,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_e781fd63-8657-47ee-b767-4bde2e1ae638"
      decimals="-3"
      id="F_8a9ae28e-c4d2-49f5-afe4-7c33bcf8c3e9"
      unitRef="U_USD">617000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
