<?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_cc23af48-b88c-4c79-9aea-16fd0dcb9cb9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-10-24</startDate>
            <endDate>2025-10-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_cc23af48-b88c-4c79-9aea-16fd0dcb9cb9"
      id="F_48d7a216-cee9-473b-beee-c3057512c671">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_cc23af48-b88c-4c79-9aea-16fd0dcb9cb9"
      id="F_3c944b6a-fe94-4981-8ecd-28fdc0091b84">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_cc23af48-b88c-4c79-9aea-16fd0dcb9cb9"
      id="F_1f7aa198-10b9-49a7-a781-87bf559b6a12">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_cc23af48-b88c-4c79-9aea-16fd0dcb9cb9"
      id="F_8f6afe72-d05e-44c7-bafd-1ee878338080">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_cc23af48-b88c-4c79-9aea-16fd0dcb9cb9"
      id="F_88d89c12-46cb-4566-bfa1-57a959302058">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_cc23af48-b88c-4c79-9aea-16fd0dcb9cb9"
      id="F_61168b9d-a05f-4a2e-86e2-d80faffd4d34">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_cc23af48-b88c-4c79-9aea-16fd0dcb9cb9"
      id="F_1012ffca-4105-4d56-8faa-0d52edfe00be">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_cc23af48-b88c-4c79-9aea-16fd0dcb9cb9"
      id="F_f606ec82-8fbe-4a95-96d8-37a6f9cad48b">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_cc23af48-b88c-4c79-9aea-16fd0dcb9cb9"
      id="F_e0a0a1d1-e7c0-43e9-bc30-007557adc0ee">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_cc23af48-b88c-4c79-9aea-16fd0dcb9cb9"
      id="F_98c9a5c0-2ae1-4892-b93a-9270b3a5fbc8">&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,140,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_cc23af48-b88c-4c79-9aea-16fd0dcb9cb9"
      decimals="0"
      id="F_b39f635e-59c2-4925-9129-d59fc37547f0"
      unitRef="U_USD">1140000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
