<?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_c820ee45-9eb0-4891-8b47-010038e7d0eb">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-22</startDate>
            <endDate>2026-06-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_c820ee45-9eb0-4891-8b47-010038e7d0eb"
      id="F_caad1ca6-2f1d-4bc4-b6f3-4d4c6dc4042b">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_c820ee45-9eb0-4891-8b47-010038e7d0eb"
      id="F_bd97d86b-8387-423e-b787-61357586b05b">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_c820ee45-9eb0-4891-8b47-010038e7d0eb"
      id="F_289ad997-51d3-464f-947c-4872af95f6e3">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_c820ee45-9eb0-4891-8b47-010038e7d0eb"
      id="F_e1caaad9-5679-4a66-92c0-a927b9bf888b">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_c820ee45-9eb0-4891-8b47-010038e7d0eb"
      id="F_d4471c5e-340e-459e-94a3-5da9b3667fc0">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_c820ee45-9eb0-4891-8b47-010038e7d0eb"
      id="F_92a2e2c4-c523-4cd8-9a29-83682cb501fc">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_c820ee45-9eb0-4891-8b47-010038e7d0eb"
      id="F_c838711c-c5a7-4331-a767-4e517dea452f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c820ee45-9eb0-4891-8b47-010038e7d0eb"
      id="F_f286390e-33e5-41df-bf87-bb53251788b5">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_c820ee45-9eb0-4891-8b47-010038e7d0eb"
      id="F_65e4757c-a516-4f10-9662-43af4f4c4e4f">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_c820ee45-9eb0-4891-8b47-010038e7d0eb"
      id="F_72ce04ec-c9ec-4940-85e0-d9b2ca9ac7b9">&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;1,350,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_c820ee45-9eb0-4891-8b47-010038e7d0eb"
      decimals="-3"
      id="F_4302b428-9ee9-4ae4-9bbc-046cd7be65a2"
      unitRef="U_USD">1350000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
