<?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_4318c775-f52e-46c4-89e9-ca8dce56b89f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-02</startDate>
            <endDate>2026-04-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_4318c775-f52e-46c4-89e9-ca8dce56b89f"
      id="F_b99f9ec3-fdb5-45f2-9515-bb01d3b9b41d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_4318c775-f52e-46c4-89e9-ca8dce56b89f"
      id="F_e56e1a5a-e525-4118-b81c-efa470c49501">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_4318c775-f52e-46c4-89e9-ca8dce56b89f"
      id="F_498e16e5-35e8-4d80-8c5a-ab7e20f5f227">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_4318c775-f52e-46c4-89e9-ca8dce56b89f"
      id="F_65b96185-c0e7-4eb4-bf25-21f4738a003a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_4318c775-f52e-46c4-89e9-ca8dce56b89f"
      id="F_0d2c8335-c8a1-4984-b2ba-af8cac3cb14d">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_4318c775-f52e-46c4-89e9-ca8dce56b89f"
      id="F_267e3966-1e18-465c-b37e-7c9a8cc9e22a">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_4318c775-f52e-46c4-89e9-ca8dce56b89f"
      id="F_a4afa9ff-6778-428c-ae49-2643926e5f00">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_4318c775-f52e-46c4-89e9-ca8dce56b89f"
      id="F_26a28dc4-9cd5-4941-9281-cf358a7e3ee2">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4318c775-f52e-46c4-89e9-ca8dce56b89f"
      id="F_f396a27d-9ecc-42c6-93f8-a5fc9fb6ccee">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_4318c775-f52e-46c4-89e9-ca8dce56b89f"
      id="F_4c275264-a3c9-4536-ab98-e413417ceaf5">&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;786,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_4318c775-f52e-46c4-89e9-ca8dce56b89f"
      decimals="0"
      id="F_c0b0bf54-4f0c-4e71-bf61-1bc17e3c7f97"
      unitRef="U_USD">786000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
