<?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_685ffab0-4467-4753-8b0e-f0323652e3aa">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-12-27</startDate>
            <endDate>2025-12-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_685ffab0-4467-4753-8b0e-f0323652e3aa"
      id="F_9df24979-2e3f-4e87-87d3-eafbcc063ab3">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_685ffab0-4467-4753-8b0e-f0323652e3aa"
      id="F_6e9e9703-f71e-4ce9-ac46-cd0f3ce3a563">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_685ffab0-4467-4753-8b0e-f0323652e3aa"
      id="F_4fd86af9-c62c-4b12-82ef-42f367728a1c">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_685ffab0-4467-4753-8b0e-f0323652e3aa"
      id="F_dbfcc9c4-f937-45c0-b2c5-dcb76fb5fca3">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_685ffab0-4467-4753-8b0e-f0323652e3aa"
      id="F_572a72cb-cd6d-427e-97e0-2c34c32c10dd">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_685ffab0-4467-4753-8b0e-f0323652e3aa"
      id="F_a26aed97-42ab-43f9-8038-feb409ceea75">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_685ffab0-4467-4753-8b0e-f0323652e3aa"
      id="F_e2069ccc-2880-4d75-963f-1099e591c764">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_685ffab0-4467-4753-8b0e-f0323652e3aa"
      id="F_5567205c-49a1-4b5d-bb0b-57fe82030789">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_685ffab0-4467-4753-8b0e-f0323652e3aa"
      id="F_eb7abd04-87f3-4567-bfa9-eea2050f097b">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_685ffab0-4467-4753-8b0e-f0323652e3aa"
      id="F_eb63a9bc-6662-42a7-a25e-0abfb65b2cea">&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;2,411,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_685ffab0-4467-4753-8b0e-f0323652e3aa"
      decimals="0"
      id="F_e1eba501-62e8-45da-8d45-fdc2ab670b0f"
      unitRef="U_USD">2411000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
