<?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_64900acc-e302-45f4-9934-4e3b0d71f777">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-11-25</startDate>
            <endDate>2025-11-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_64900acc-e302-45f4-9934-4e3b0d71f777"
      id="F_41fb2e2e-981e-4c46-8304-8477ef53b1a8">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_64900acc-e302-45f4-9934-4e3b0d71f777"
      id="F_5efc52ac-6f35-4c4a-9466-20e93611b3a5">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_64900acc-e302-45f4-9934-4e3b0d71f777"
      id="F_ed6c85fe-90b1-4608-b32a-3b2de64627f7">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_64900acc-e302-45f4-9934-4e3b0d71f777"
      id="F_a9d4d806-64d1-438e-a39c-448400c94623">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_64900acc-e302-45f4-9934-4e3b0d71f777"
      id="F_a9f983e7-9c1c-4698-a076-b71904de1581">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_64900acc-e302-45f4-9934-4e3b0d71f777"
      id="F_0cbbc336-619c-4392-8d58-1ff356ee7ad8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_64900acc-e302-45f4-9934-4e3b0d71f777"
      id="F_ed889870-c26e-4df4-82d7-7678faeacfc6">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_64900acc-e302-45f4-9934-4e3b0d71f777"
      id="F_23e9aee3-0ac2-4261-8789-2aa0c4747ca5">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_64900acc-e302-45f4-9934-4e3b0d71f777"
      id="F_2d495ea4-37b5-4b49-8972-13ab8077f688">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_64900acc-e302-45f4-9934-4e3b0d71f777"
      id="F_2118758b-cf02-48df-88a4-b69a424fcd27">&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,037,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_64900acc-e302-45f4-9934-4e3b0d71f777"
      decimals="0"
      id="F_168ca8bb-8af6-4adf-bed1-53012e74e7d2"
      unitRef="U_USD">2037000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
