<?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_4da3197c-6982-4f24-8af0-ba7e1209183b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-29</startDate>
            <endDate>2026-06-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_4da3197c-6982-4f24-8af0-ba7e1209183b"
      id="F_5f592539-41f7-4504-bcdb-647902180b1e">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_4da3197c-6982-4f24-8af0-ba7e1209183b"
      id="F_80a331f8-d69c-48c9-a4af-ccb4f501a77d">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_4da3197c-6982-4f24-8af0-ba7e1209183b"
      id="F_a0e0d3d0-ea77-4c8a-8966-3c713a496cab">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_4da3197c-6982-4f24-8af0-ba7e1209183b"
      id="F_a4f70049-ca22-4684-b276-d49ac1944fde">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_4da3197c-6982-4f24-8af0-ba7e1209183b"
      id="F_b51722f3-e914-4652-9270-83d7e2c70927">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4da3197c-6982-4f24-8af0-ba7e1209183b"
      id="F_10f95c5c-7e63-4e6b-9d22-25b4a2fdd1a4">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_4da3197c-6982-4f24-8af0-ba7e1209183b"
      id="F_16f404e8-b417-437c-8e03-3f35616a205b">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_4da3197c-6982-4f24-8af0-ba7e1209183b"
      id="F_8f877210-7758-4e81-bb67-a2b9cf95efcf">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_4da3197c-6982-4f24-8af0-ba7e1209183b"
      id="F_195d2c80-f354-4287-a4e3-389952c8e367">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_4da3197c-6982-4f24-8af0-ba7e1209183b"
      id="F_7580efe1-22f8-4f99-a7ff-6aa07d1edeef">&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;500,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_4da3197c-6982-4f24-8af0-ba7e1209183b"
      decimals="-3"
      id="F_327afa46-ad4e-4205-84f9-6b101dbf6ce8"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
