<?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_8abac201-8109-41ad-b404-18b5febefd49">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8abac201-8109-41ad-b404-18b5febefd49"
      id="F_63349abb-430c-4fb4-8725-c6d9792d62ec">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_8abac201-8109-41ad-b404-18b5febefd49"
      id="F_94e2e52c-fc65-4570-aba9-f8da60908751">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_8abac201-8109-41ad-b404-18b5febefd49"
      id="F_b71edde2-2525-4af7-a552-21acf3935c62">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_8abac201-8109-41ad-b404-18b5febefd49"
      id="F_7d554e54-5096-4f96-84d8-8717148c0378">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_8abac201-8109-41ad-b404-18b5febefd49"
      id="F_a523bde8-cc99-4ecd-b53f-082a0ddd3a28">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_8abac201-8109-41ad-b404-18b5febefd49"
      id="F_76b50168-6ecd-49c0-972b-e9b107fe18f1">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_8abac201-8109-41ad-b404-18b5febefd49"
      id="F_fa76ebd5-15c3-4684-bd94-103c617d6cb6">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_8abac201-8109-41ad-b404-18b5febefd49"
      id="F_c7838997-7d14-46c6-9b3d-751a143022b1">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_8abac201-8109-41ad-b404-18b5febefd49"
      id="F_b4a45fca-b193-4248-a3d8-4d96347cb503">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_8abac201-8109-41ad-b404-18b5febefd49"
      id="F_20a1afc8-f629-4da1-8b45-0583ddbec508">&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,000,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_8abac201-8109-41ad-b404-18b5febefd49"
      decimals="-6"
      id="F_1a9e6ac6-8b74-46f4-8396-5037bca7432b"
      unitRef="U_USD">4000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
