<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_acd89310-eb31-421f-b152-aeb813ae6db9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-01</startDate>
            <endDate>2026-04-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_acd89310-eb31-421f-b152-aeb813ae6db9"
      id="F_0b615a42-56d1-450f-95ca-38c691da0eb6">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_acd89310-eb31-421f-b152-aeb813ae6db9"
      id="F_93d2b501-de4b-48cf-aa6e-e08a415273fa">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_acd89310-eb31-421f-b152-aeb813ae6db9"
      id="F_d90b8f93-33a6-4dec-824a-e483a000ee2d">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_acd89310-eb31-421f-b152-aeb813ae6db9"
      id="F_53d6b663-b37a-40e7-bb4c-176eef8a39c5">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_acd89310-eb31-421f-b152-aeb813ae6db9"
      id="F_9da0a9b7-2063-4592-8c07-95de1e9c11cf">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_acd89310-eb31-421f-b152-aeb813ae6db9"
      id="F_6c30d63d-a883-4254-9c2d-febca4b1ba65">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_acd89310-eb31-421f-b152-aeb813ae6db9"
      id="F_8d66bc8a-2844-4c1b-b7f2-16db8abb4723">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_acd89310-eb31-421f-b152-aeb813ae6db9"
      id="F_f3a4155f-9b31-4026-a558-74bd317d6438">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_acd89310-eb31-421f-b152-aeb813ae6db9"
      id="F_c877fb4a-2a94-4fa4-ba25-26883479865a">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_acd89310-eb31-421f-b152-aeb813ae6db9"
      id="F_2005405d-66b9-4b12-9d98-872aa33ec11b">&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;6,225,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_acd89310-eb31-421f-b152-aeb813ae6db9"
      decimals="0"
      id="F_89d9fc31-86f7-47b0-a198-e5146a9eb8d9"
      unitRef="U_USD">6225000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
