<?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_0356c72c-25de-46db-b122-0e10bfb690ff">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-20</startDate>
            <endDate>2026-05-20</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_0356c72c-25de-46db-b122-0e10bfb690ff"
      id="F_8ac5455f-934b-4e0b-b8c1-8532ce80fbf0">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_0356c72c-25de-46db-b122-0e10bfb690ff"
      id="F_592a57e6-5190-4032-ade2-56ef895c7c39">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0356c72c-25de-46db-b122-0e10bfb690ff"
      id="F_5c40f194-56e0-4f29-a79c-3aaf22a1a0e9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_0356c72c-25de-46db-b122-0e10bfb690ff"
      id="F_84b26992-0e7b-465c-8c1a-529139011a19">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_0356c72c-25de-46db-b122-0e10bfb690ff"
      id="F_91767eba-2ba2-4d57-9040-16c91becdf9b">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_0356c72c-25de-46db-b122-0e10bfb690ff"
      id="F_75f98f4e-9239-4a9b-968d-7e50e5a4f610">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_0356c72c-25de-46db-b122-0e10bfb690ff"
      id="F_12e1d425-ecac-4207-b74e-fe60c02fd097">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_0356c72c-25de-46db-b122-0e10bfb690ff"
      id="F_8b86ee59-8bff-416a-90f2-a43a98a48427">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_0356c72c-25de-46db-b122-0e10bfb690ff"
      id="F_b39a3ce5-159f-4933-9dad-ca7740636b46">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_0356c72c-25de-46db-b122-0e10bfb690ff"
      id="F_a776b661-a4c9-4694-b5f4-2fea212d0e47">&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;10,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_0356c72c-25de-46db-b122-0e10bfb690ff"
      decimals="0"
      id="F_a398c695-f873-4d87-881f-62778af13497"
      unitRef="U_USD">10000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
